removed rounding of scores and mentions of grapheme
@@ -207,7 +207,7 @@ result = [doc for doc in response if not doc.is_error]
for doc in result:
print("Overall sentiment: {}".format(doc.sentiment))
- print("Scores: positive={0:.3f}; neutral={1:.3f}; negative={2:.3f} \n".format(
+ print("Scores: positive={}; neutral={}; negative={} \n".format(
doc.confidence_scores.positive,
doc.confidence_scores.neutral,
doc.confidence_scores.negative,
@@ -297,9 +297,8 @@ for doc in result:
print("URL: {}".format(entity.url))
print("Data Source: {}".format(entity.data_source))
for match in entity.matches:
- print("Score: {0:.3f}".format(match.score))
- print("Offset: {}".format(match.grapheme_offset))
- print("Length: {}\n".format(match.grapheme_length))
+ print("Score: {}".format(match.score))
+ print("Entity as appears in request: {}".format(match.text))
```
The returned response is a heterogeneous list of result and error objects: list[[RecognizeLinkedEntitiesResult][recognize_linked_entities_result], [DocumentError][document_error]]
