You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a large file of names/addresses and decided to try the nameparser library with my name field. I was able to get more of my names parsed correctly by adding two regex patterns and adding these regex patterns to the list.
In regexes.py, added:
('double_apos', re.compile(r"''(.?)''", re.U)),
('apos', re.compile(r"'(.?)'", re.U)),
In parser.py, added:
re_apos = self.C.regexes.apos
re_double_apos = self.C.regexes.double_apos
In parser.py, changed:
for _re in (re_quoted_word, re_double_quotes, re_parenthesis, re_double_apos, re_apos):
The text was updated successfully, but these errors were encountered:
I've got a large file of names/addresses and decided to try the nameparser library with my name field. I was able to get more of my names parsed correctly by adding two regex patterns and adding these regex patterns to the list.
In regexes.py, added:
('double_apos', re.compile(r"''(.?)''", re.U)),
('apos', re.compile(r"'(.?)'", re.U)),
In parser.py, added:
re_apos = self.C.regexes.apos
re_double_apos = self.C.regexes.double_apos
In parser.py, changed:
for _re in (re_quoted_word, re_double_quotes, re_parenthesis, re_double_apos, re_apos):
The text was updated successfully, but these errors were encountered: