Skip to content

Commit

Permalink
disable corenlp fine grained location NER tagging #13
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlujpl committed Jun 11, 2021
1 parent 2b88469 commit 3f4a084
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parserindexer/corenlpparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def __init__(self, **kwargs):
'outputFormat': 'json',
'ner.useSUTime': False, # dont want SUTime model
'ner.applyNumericClassifiers': False, # Dont want numeric classifier
# Don't need fine grained recognition with corenlp built-in NER
# models
'ner.applyFineGrained': False
}
if kwargs.get('ner_model'): # set NER model from CLI
if not os.path.exists(kwargs.get('ner_model')):
Expand Down

0 comments on commit 3f4a084

Please sign in to comment.