Skip to content

Commit 2c7205a

Browse files
committed
Added genre "social-media" in entities example
1 parent 1cde636 commit 2c7205a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/entities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def run(key, altUrl='https://api.rosette.com/rest/v1/'):
1717
entities_text_data = "Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS"
1818
params = DocumentParameters()
1919
params["content"] = entities_text_data
20+
params["genre"] = "social-media"
2021
# to improve performance, and if you don't need the QID, set this option
2122
# api.setOption("linkEntities", False)
2223
return api.entities(params) # entity linking is turned off

0 commit comments

Comments
 (0)