Skip to content

Commit cb21f95

Browse files
authored
Merge pull request #51 from fhasanaj/develop
Removed "linkEntities" from entities example
2 parents 5466b6e + c340475 commit cb21f95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/entities.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ def run(key, altUrl='https://api.rosette.com/rest/v1/'):
1818
params = DocumentParameters()
1919
params["content"] = entities_text_data
2020
params["genre"] = "social-media"
21-
# to improve performance, and if you don't need the QID, set this option
22-
# api.setOption("linkEntities", False)
23-
return api.entities(params) # entity linking is turned off
21+
return api.entities(params)
2422

2523
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter, description='Calls the ' + os.path.splitext(os.path.basename(__file__))[0] + ' endpoint')
2624
parser.add_argument('-k', '--key', help='Rosette API Key', required=True)

0 commit comments

Comments
 (0)