# clone this repository
git clone https://github.com/Chaotic-chaos/my_punctuator_cpp.git
# perpare an environment
python -m vnev venv # or whatever ways u'd like
# move into the right directory
cd punctuator_installer/
# start the building and installation
python setup.py install
import punctuator
model = punctuator()
model = model.setup_model("path/to/model.pth")
res = model.decode("<string of the word_ids>")
# maximum snetence length is 512
For more details please refer to use_sample.py
- refer to blog