TEI - TimeBankPT Event Identification
TEI is an event trigger identifier system for sentences in the Portuguese language. It locates the event trigger terms in a sentence. The model was trained on the TimeBankPT (COSTA; BRANCO,2012) corpus.
The system outputs the identified events in the following Json format:
[
{
"text": "Vazamentos",
"start": 0,
"end": 10
},
{
"text": "expõem",
"start": 20,
"end": 26
},
{
"text": "diz",
"start": 62,
"end": 65
}
]
The andersonsacramento/tei Docker image reads in an input directory of text files and writes Json document files to an output directory or it reads a sentence and prints the output on the standard output in Json format.
The text files in the input directory are expected to have the format:
* all text files end with the extension .txt
* sentences are separated by newlines
In order to read and write files on the Docker host, the container needs to be run with appropriate Docker volume flags (e.g. -v/--volume/--mount).
If the working directory on the Docker host contains a sub-directory named input-files/, then the container could be run using:
$ docker run -it --rm -v `pwd`:/mnt andersonsacramento/tei --dir /mnt/input-files/ /mnt/output-files/
In order to run the container on a given sentence, it can be invoked using:
$ docker run -it --rm andersonsacramento/tei --sentence Vazamentos de dados expõem senhas de funcionários do governo, diz relatório.'
Peer-reviewed accepted paper:
Content type
Image
Digest
Size
2.4 GB
Last updated
about 5 years ago
docker pull andersonsacramento/tei