https://github.com/catalystcode/clausie-server
Server for the ClausIE OpenIE parser
https://github.com/catalystcode/clausie-server
clausie information-extraction java-8 nlp openie sparkjava
Last synced: 3 months ago
JSON representation
Server for the ClausIE OpenIE parser
- Host: GitHub
- URL: https://github.com/catalystcode/clausie-server
- Owner: CatalystCode
- License: mit
- Created: 2018-04-02T15:43:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T15:12:09.000Z (almost 7 years ago)
- Last Synced: 2025-01-22T15:47:59.871Z (5 months ago)
- Topics: clausie, information-extraction, java-8, nlp, openie, sparkjava
- Language: Java
- Size: 45.2 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ClausIE-Server
[](https://travis-ci.org/CatalystCode/ClausIE-Server)
[](https://hub.docker.com/r/cwolff/clausieserver/)## What's this?
This repository contains a dockerized web service to quickly get started with
[Open Information Extraction (OpenIE)](https://en.wikipedia.org/wiki/Open_information_extraction).The web service is implemented in [Spark Java](http://sparkjava.com/) and wraps
the [ClausIE OpenIE tool](https://www.mpi-inf.mpg.de/departments/databases-and-information-systems/software/clausie/)
created by the Max Planck Institute.## Usage
First, run the ClausIE-Server via docker:
```sh
docker run -d -p 4567:4567 cwolff/clausieserver
```Second, prepare an input file with text to process via OpenIE. The file
should have one sentence per line:```txt
AE remained in Princeton until his death.
AE is a scientist of the 20th century.
AE has won the Nobel Prize in 1921.
```Next, call the ClausIE-Server. The file with the input text should be passed
as `multipart/form-data` under the form key `upload`:```sh
curl -F "[email protected]" "http://localhost:4567/openie/form"
```The service will respond with the OpenIE relations extracted from the sentences
in JSON-object per line format. Note that one sentence may produce multiple
relations:```jsonl
{"argument":"in Princeton until his death","line":0,"subject":"AE","relation":"remained"}
{"argument":"in Princeton","line":0,"subject":"AE","relation":"remained"}
{"argument":"death","line":0,"subject":"his","relation":"has"}
{"argument":"a scientist of the 20th century","line":1,"subject":"AE","relation":"is"}
{"argument":"a scientist","line":1,"subject":"AE","relation":"is"}
{"argument":"the Nobel Prize in 1921","line":2,"subject":"AE","relation":"has won"}
```## License
* This distribution includes libraries of [Clausie v. 0.0.1](https://www.mpi-inf.mpg.de/departments/databases-and-information-systems/software/clausie/) which is distributed under the [Attribution-ShareAlike (ver. 3.0 or later)](http://creativecommons.org/licenses/by-sa/3.0/legalcode)
* This distribution includes libraries of the [Stanford Parser v. 2.0.5](http://www-nlp.stanford.edu/software/lex-parser.shtml) which is licensed under the [GNU General Public License (v2 or later)](http://www.gnu.org/licenses/gpl-2.0.html)