Fix infixes in french

This commit is contained in:
Matthew Honnibal 2016-11-02 20:41:43 +01:00
parent c09a8ce5bb
commit 3d4bd96e8a

View File

@ -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 = {