-
Notifications
You must be signed in to change notification settings - Fork 5
Text to Triples Service
Varish Mulwad edited this page Apr 2, 2019
·
1 revision
The Text to Triples service can be consumed independently of the ANSWER system (see standalone text extraction demo).
The documentation for the service layer is provided via Swagger in the Amazon instance: http://localhost:4200/darpa/aske/ui/
The two main services are /text2triples and /equationVariableContext
/text2triples
- This service processes the text, extracts relevant scientific concepts and equations, generates relevant triples and returns the extracted concepts, equations and associated triples.
- Sample Input:
{ "locality": "string", "text": "The net force on an object is equal to the mass of the object multiplied by the acceleration of the object"}
(locality is currently ignored) - Response Model:
[ { "concepts": [ { "end": 0, "extractionConfScore": 0, "start": 0, "string": "string", "triples": [ { "object": "string", "predicate": "string", "subject": "string", "tripleConfScore": 0 } ], "type": "string" } ], "text": "string" } ]
. The start and end represents the starting and ending characters where the concept/equation appears in the text; string represents the string in the text that was extracted as equation/concept; type is either EQUATION or CONCEPT and indicates the entity type.
/equationVariableContext:
- This service identifies relevant context for a given variable name in the named graph.
- Sample Input:
{ "localityURI": "http://kdl.ge.com/darpa/aske/speedofsound", "variableName": "T"}
- Response Model:
[ { "entityLabel": "string", "entityURI": "string", "variableName": "string", "equationString" : "string" }]