1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-21 20:48:14 +00:00

Update schema examples

This commit is contained in:
J. Fernando Sánchez 2019-04-09 15:51:20 +02:00
parent 3bd3c87af4
commit c4321dc500
5 changed files with 7 additions and 53 deletions

View File

@ -2,11 +2,7 @@ Developing new services
-----------------------
Developing web services can be hard.
To illustrate it, the figure below summarizes the typical features in a text analysis service.
.. image:: senpy-framework.png
:width: 60%
:align: center
A text analysis service must implement all the typical features, such as: extraction of parameters, validation, format conversion, visualization...
Senpy implements all the common blocks, so developers can focus on what really matters: great analysis algorithms that solve real problems.
Among other things, Senpy takes care of these tasks:
@ -24,4 +20,5 @@ Sharing your sentiment analysis with the world has never been easier!
:maxdepth: 1
plugins-quickstart
plugins-faq
plugins-faq
plugins-definition

View File

@ -26,20 +26,7 @@ Representation
,,,,,,,,,,,,,,
.. literalinclude:: examples/results/example-sentiment.json
:emphasize-lines: 5-10,25-33
:language: json-ld
Suggestion Mining
.................
Description
,,,,,,,,,,,
The suggestions schema represented below shows the suggestions detected in the text. Within it, we can find the NIF fields highlighted that corresponds to the text of the detected suggestion.
Representation
,,,,,,,,,,,,,,
.. literalinclude:: examples/results/example-suggestion.json
:emphasize-lines: 5-8,22-27
:emphasize-lines: 5-11,20-30
:language: json-ld
Emotion Analysis
@ -53,28 +40,6 @@ Representation
.. literalinclude:: examples/results/example-emotion.json
:language: json-ld
:emphasize-lines: 5-8,25-37
:emphasize-lines: 5-11,22-36
Named Entity Recognition
........................
Description
,,,,,,,,,,,
The Named Entity Recognition is represented as follows. In this particular case, it can be seen within the entities array the entities recognised. For the example input, Microsoft and Windows Phone are the ones detected.
Representation
,,,,,,,,,,,,,,
.. literalinclude:: examples/results/example-ner.json
:emphasize-lines: 5-8,19-34
:language: json-ld
Complete example
................
Description
,,,,,,,,,,,
This example covers all of the above cases, integrating all the annotations in the same document.
Representation
,,,,,,,,,,,,,,
.. literalinclude:: examples/results/example-complete.json
:language: json-ld

View File

@ -17,10 +17,6 @@
"nif:Context"
],
"nif:isString": "Dear Microsoft, put your Windows Phone on your newest #open technology program. You'll be awesome. #opensource",
"entities": [
],
"suggestions": [
],
"sentiments": [
],
"emotions": [

View File

@ -17,10 +17,6 @@
"nif:Context"
],
"nif:isString": "Dear Microsoft, put your Windows Phone on your newest #open technology program. You'll be awesome. #opensource",
"entities": [
],
"suggestions": [
],
"sentiments": [
{
"@id": "http://micro.blog/status1#char=80,97",
@ -32,7 +28,7 @@
"prov:wasGeneratedBy": "_:SAnalysis1_Activity"
}
],
"emotionSets": [
"emotions": [
]
}
]

View File

@ -8,7 +8,7 @@ F.A.Q.
What are annotations?
#####################
They are objects just like entries.
Senpy ships with several default annotations, including: ``Sentiment``, ``Emotion``, ``EmotionSet``...jk bb
Senpy ships with several default annotations, including ``Sentiment`` and ``Emotion``.
What's a plugin made of?