English word segmentation library that segments concatenated text into separate words. Version 1.3.1 released October 2019; no active development since then. Designed for segmenting hashtags, URLs, or other concatenated phrases.
pip install wordsegmentVerified import paths — ran on the pinned version, not inferred.
Basic segmentation example using the default model.
Preprocess input to lowercase or clean punctuation. Consider adding custom words to the model.
Consider using an alternative like 'wordninja' or a more modern NLP library.
Remove spaces or punctuation from input before passing to segment.
Run 'pip install wordsegment' in the correct Python environment.
Use segment('yourtext') with a single string argument.No dependency data recorded yet.