EFord36 / normalise

A module for normalising text.
GNU General Public License v3.0
173 stars 33 forks source link

expand_NUM fails to expand number ranges of the format, eg. "2:28-:33" #63

Open emmaflint27 opened 8 years ago

emmaflint27 commented 8 years ago

Also - 2:43.1--:38

emmaflint27 commented 8 years ago

Fixed bug with a try/except statement - inputs which create errors in number functions now return the original word. However, would be nice to be able to cope with number ranges of this format.

emmaflint27 commented 8 years ago

Also '2:30-.36' returns 'twenty three thousand, thirty six' - tagged as NUM and ignores punctuation - should be tagged as NRANGE and write something to deal with this?