View on GitHub

Graphene

Coreference Resolution, Simplification and Open Relation Extraction Pipeline

Usage of the Graphene-Server

The Graphene-Server captures the same functionalities as the Graphene-Core API. The wrapped Core API functions can be executed by HTTP GET requests.

Resolving co-references

The coreference service accepts the following endpoints with parameters:

Endpoint: /coreference/text

Returns the JSON-serialized version of the CoreferenceContent class.

Example:

curl -X POST -H "Content-Type: application/json"  -d '{"text": "The text."}' -H "Accept: application/json" "http://localhost:8080/coreference/text"

Open Relation Extraction

The Open Relation Extraction service accepts the following endpoints with parameters:

Endpoint: /relationExtraction/text

Returns the JSON-serialized versions of the ExContent class or a textual representation depending on the value of the Accept header in the POST request:

Examples:

curl -X POST -H "Content-Type: application/json"  -d '{"text": "The text.", "doCoreference": "true", "isolateSentences": "false"}' -H "Accept: application/json" "http://localhost:8080/relationExtraction/text"
curl -X POST -H "Content-Type: application/json"  -d '{"text": "The text.", "doCoreference": "true", "isolateSentences": "false", "format": "DEFAULT"}' -H "Accept: text/plain" "http://localhost:8080/relationExtraction/text"