Concatenated-word segmentation Python library written in Rust

Table of Contents
About The Project
A fast concatenated-word segmentation library written in Rust, inspired by wordninja and wordsegment. The binding uses pyo3 to interact with the rust package.
Built With
Installation
pip3 install pywordsegment
Usage
import pywordsegment
pywordsegment.WordSegmenter.segment(
text="theusashops",
)
pywordsegment.WordSegmenter.exist_as_segment(
substring="inter",
text="internationalairport",
)
pywordsegment.WordSegmenter.exist_as_segment(
substring="inter",
text="intermilan",
)
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Gal Ben David - gal@intsights.com
Project Link: https://github.com/intsights/pywordsegment