I would like to indentify all types of numbers in a string. Example:
a = 'I 0.34 -345 3/4 3% want to get -0.34 2018-09 all numbers'
Result:
['I', '_num', '_num', '_num', '_num', 'want', 'to', 'get', '_num', '_num', 'all', 'numbers']
it is a nlp project and I wonder if there is a better method to get the result. I could just list all the types then use regex but it's not concise,someone has good ideas?