mirror of https://github.com/explosion/spaCy.git
Fix #1296: Incorrect lemmatization of base form verbs
This commit is contained in:
parent
b29e6bff46
commit
bfddf50081
|
@ -44,6 +44,11 @@ class Lemmatizer(object):
|
|||
return True
|
||||
elif univ_pos == 'verb' and morphology.get('VerbForm') == 'inf':
|
||||
return True
|
||||
# This maps 'VBP' to base form -- probably just need 'IS_BASE'
|
||||
# morphology
|
||||
elif univ_pos == 'verb' and (morphology.get('VerbForm') == 'fin' and \
|
||||
morphology.get('Tense') == 'pres'):
|
||||
return True
|
||||
elif univ_pos == 'adj' and morphology.get('Degree') == 'pos':
|
||||
return True
|
||||
elif VerbForm_inf in morphology:
|
||||
|
|
Loading…
Reference in New Issue