Instructions to use felflare/bert-restore-punctuation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use felflare/bert-restore-punctuation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="felflare/bert-restore-punctuation")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("felflare/bert-restore-punctuation") model = AutoModelForTokenClassification.from_pretrained("felflare/bert-restore-punctuation") - Notebooks
- Google Colab
- Kaggle
pip install rpunct does not work with python 3.10
#1
by liaoch - opened
pip install rpunct
Defaulting to user installation because normal site-packages is not writeable
Collecting rpunct
Using cached rpunct-1.0.2-py3-none-any.whl (5.9 kB)
ERROR: Could not find a version that satisfies the requirement torch==1.8.1 (from rpunct) (from versions: 1.11.0, 1.12.0, 1.12.1)
ERROR: No matching distribution found for torch==1.8.1
After googling around, using python 3.8 works.
Could the authors make it work with Python 3.10?
Could also not get rpucnt to install correctly, but using transformers pipeline and calling the model worked great.