mirror of https://github.com/explosion/spaCy.git
Fix infixes in spanish and portuguese
This commit is contained in:
parent
3d4bd96e8a
commit
41a4766c1c
|
@ -114,7 +114,10 @@ _
|
|||
'''.strip().split('\n')
|
||||
|
||||
|
||||
TOKENIZER_INFIXES = tuple()
|
||||
TOKENIZER_INFIXES = (r'''\.\.\.+ (?<=[a-z])\.(?=[A-Z]) (?<=[a-zA-Z])-(?=[a-zA-z]) '''
|
||||
r'''(?<=[a-zA-Z])--(?=[a-zA-z]) (?<=[0-9])-(?=[0-9]) '''
|
||||
r'''(?<=[A-Za-z]),(?=[A-Za-z])''').split()
|
||||
|
||||
|
||||
|
||||
TOKENIZER_EXCEPTIONS = {
|
||||
|
|
|
@ -114,7 +114,10 @@ _
|
|||
'''.strip().split('\n')
|
||||
|
||||
|
||||
TOKENIZER_INFIXES = tuple()
|
||||
TOKENIZER_INFIXES = (r'''\.\.\.+ (?<=[a-z])\.(?=[A-Z]) (?<=[a-zA-Z])-(?=[a-zA-z]) '''
|
||||
r'''(?<=[a-zA-Z])--(?=[a-zA-z]) (?<=[0-9])-(?=[0-9]) '''
|
||||
r'''(?<=[A-Za-z]),(?=[A-Za-z])''').split()
|
||||
|
||||
|
||||
|
||||
TOKENIZER_EXCEPTIONS = {
|
||||
|
|
Loading…
Reference in New Issue