Raising an issue that I faced while using this package.
Code for Reproducing the issue:
import wordsegment as ws
ws.load()
text = "increased $55 million or 23.8% for"
ws.segment(text)
Actual Output:
['increased', '55millionor238', 'for']
Expected Output:
// If special symbols are permitted in the final output
['increased', '$55', 'million', 'or', '23.8%', 'for']
// If special symbols such as $ and % are not permitted in the final output
['increased', 'dollar', '55', 'million', 'or', '23.8', 'percent', 'for']
Tested on Python versions:
wordsegment version:
StackOverflow Question Link:
Raising an issue that I faced while using this package.
Code for Reproducing the issue:
Actual Output:
Expected Output:
Tested on Python versions:
wordsegment version:
StackOverflow Question Link: