README.md 965 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Senpy example plugin

This is the **Hello Senpy!** plugin.
In every request, it will replace the text of each entry with the contents of `data/datos.txt`.

## Installation

* Download
```
git clone https://lab.cluster.gsi.dit.upm.es/senpy/plugin-example.git
```
* Get data
```
cd plugin-example
git submodule update --init --recursive
```
* Run (docker compose)
```
docker-compose up
```
* Run (alternative, manual)
```
docker build . -t senpy-example
docker run -p 5000:5000 senpy-example
```

## Data format

`data/datos.txt` is a plain file.


## Development

The docker compose file included mounts the source code in the container.
After changing the code, you only need to restart the service:

```
docker-compose restart senpy-example
```

Or stop and run the docker container manually if you are not using compose.


## More information

[Senpy](http://senpy.readthedocs.io) is a semantic NLP framework developed at [GSI-UPM](https://www.gsi.dit.upm.es).