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

Coreference Resolution will resolve coreferences in the given input text. The Coreference Resolution service accepts the following endpoints with parameters:

Endpoint: /coreference/text

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

Example:

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

Discourse Simplification

Discourse Simplification will recursively simplify the given input text and identify rhetorical relations, but will NOT extract subject-predicate-argument relations. The Discourse Simplification service accepts the following endpoints with parameters:

Endpoint: /discourseSimplification/text

Returns the JSON-serialized versions of the DiscourseSimplificationContent 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", "format": "DEFAULT"}' -H "Accept: text/plain" "http://localhost:8080/discourseSimplification/text"
curl -X POST -H "Content-Type: application/json"  -d '{"text": "The text.", "doCoreference": "true", "isolateSentences": "false"}' -H "Accept: application/json" "http://localhost:8080/discourseSimplification/text"

Open Relation Extraction

Open Relation Extraction will recursively simplify the given input text and identify rhetorical relations, as well as subject-predicate-argument relations. The Open Relation Extraction service accepts the following endpoints with parameters:

Endpoint: /relationExtraction/text

Returns the JSON-serialized versions of the RelationExtractionContent 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", "format": "DEFAULT"}' -H "Accept: text/plain" "http://localhost:8080/relationExtraction/text"
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"