Skip to content

Commit

Permalink
fixed readme for Property Extraction Annotator
Browse files Browse the repository at this point in the history
  • Loading branch information
nstsj committed Aug 28, 2023
1 parent cdf6969 commit 31ecd72
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion annotators/property_extraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ import requests

utterances = [["I love going for a walk with my two dogs every day."], ["I like travelling in Italy with my husband. And you?"]]
requests.post("http://0.0.0.0:8136/respond", json = {"utterances": utterances}).json()
```

>>> [
**Output example**
```
[
{"triplets": [{"subject": "user", "relation": "like activity", "object": "walking"}, {"subject": "user", "relation": "have pet", "object": "two dogs"}]},
{"triplets": [{"subject": "user", "property": "marital status", "object": "husband"}, {"subject": "user", "relation": "like activity", "object": "travel"}]}
]
```

## Dependencies
none

0 comments on commit 31ecd72

Please sign in to comment.