Skip to content

Commit

Permalink
Update normalize function example
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmogar committed May 9, 2015
1 parent 517a3d7 commit 209f42a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ It's also possible to send a list of normalizations to apply, which will be exec
from normalizr import Normalizr
normalizr = Normalizr(language='en')
print(normalizr.normalize('Who let the dog out?', ['whitespaces', 'punctuation']))
normalizations = [
'remove_extra_whitespaces',
('replace_punctuation', {'replacement': ' '})
]
print(normalizr.normalize('Who let the dog out?', normalizations))
Output:

Expand Down

0 comments on commit 209f42a

Please sign in to comment.