1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-23 05:28:13 +00:00
senpy/docs/examples.rst

46 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2017-04-07 12:19:08 +00:00
Examples
--------
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
.....................
2016-03-31 09:56:32 +00:00
Description
,,,,,,,,,,,
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
,,,,,,,,,,,,,,
.. literalinclude:: examples/results/example-basic.json
2016-03-31 09:56:32 +00:00
:language: json-ld
Sentiment Analysis
.....................
2016-03-31 09:56:32 +00:00
Description
,,,,,,,,,,,
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
,,,,,,,,,,,,,,
2016-03-31 09:56:32 +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
................
2016-03-31 09:56:32 +00:00
Description
,,,,,,,,,,,
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
,,,,,,,,,,,,,,
2016-03-31 09:56:32 +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