2017-04-07 12:19:08 +00:00
Examples
2019-01-07 11:08:19 +00:00
--------
2016-09-21 08:10:49 +00:00
All the examples in this page use the :download: `the main schema <_static/schemas/definitions.json>` .
2016-03-31 09:56:32 +00:00
Simple NIF annotation
2017-04-03 16:18:35 +00:00
.....................
2016-03-31 09:56:32 +00:00
Description
2017-04-03 16:18:35 +00:00
,,,,,,,,,,,
2016-03-31 09:56:32 +00:00
This example covers the basic example in the NIF documentation: `<http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core/nif-core.html>`_ .
Representation
2017-04-03 16:18:35 +00:00
,,,,,,,,,,,,,,
.. literalinclude :: examples/results/example-basic.json
2016-03-31 09:56:32 +00:00
:language: json-ld
Sentiment Analysis
2017-04-03 16:18:35 +00:00
.....................
2016-03-31 09:56:32 +00:00
Description
2017-04-03 16:18:35 +00:00
,,,,,,,,,,,
2019-01-07 11:08:19 +00:00
2017-04-07 12:19:08 +00:00
This annotation corresponds to the sentiment analysis of an input. The example shows the sentiment represented according to Marl format.
The sentiments detected are contained in the Sentiments array with their related part of the text.
2016-03-31 09:56:32 +00:00
Representation
2017-04-03 16:18:35 +00:00
,,,,,,,,,,,,,,
2016-03-31 09:56:32 +00:00
2017-04-03 16:18:35 +00:00
.. literalinclude :: examples/results/example-sentiment.json
2019-04-09 13:51:20 +00:00
:emphasize-lines: 5-11,20-30
2016-03-31 09:56:32 +00:00
:language: json-ld
Emotion Analysis
2017-04-03 16:18:35 +00:00
................
2016-03-31 09:56:32 +00:00
Description
2017-04-03 16:18:35 +00:00
,,,,,,,,,,,
2017-04-07 12:19:08 +00:00
This annotation represents the emotion analysis of an input to Senpy. The emotions are contained in the emotions section with the text that refers to following Onyx format and the emotion model defined beforehand.
2016-03-31 09:56:32 +00:00
Representation
2017-04-03 16:18:35 +00:00
,,,,,,,,,,,,,,
2016-03-31 09:56:32 +00:00
2017-04-03 16:18:35 +00:00
.. literalinclude :: examples/results/example-emotion.json
2016-03-31 09:56:32 +00:00
:language: json-ld
2019-04-09 13:51:20 +00:00
:emphasize-lines: 5-11,22-36
2016-03-31 09:56:32 +00:00