mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Find lowercased forms of ordinal words, where possible
This commit is contained in:
parent
9bc524982e
commit
ed0db95183
|
@ -33,6 +33,8 @@ def like_num(text):
|
|||
return True
|
||||
if text.lower() in _num_words:
|
||||
return True
|
||||
if text.lower() in _ordinal_words:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@ def like_num(text):
|
|||
return True
|
||||
if text.lower() in _num_words:
|
||||
return True
|
||||
if text.lower() in _ordinal_words:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
|
@ -30,6 +30,8 @@ def like_num(text):
|
|||
return True
|
||||
if text.lower() in _num_words:
|
||||
return True
|
||||
if text.lower() in _ordinal_words:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user