Instructions to use impresso-project/ner-stacked-bert-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impresso-project/ner-stacked-bert-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="impresso-project/ner-stacked-bert-multilingual", trust_remote_code=True)# Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("impresso-project/ner-stacked-bert-multilingual", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update generic_ner.py
Browse files- generic_ner.py +1 -1
generic_ner.py
CHANGED
|
@@ -14,7 +14,7 @@ import torch.nn.functional as F
|
|
| 14 |
import re, string
|
| 15 |
|
| 16 |
stop_words = set(nltk.corpus.stopwords.words("english"))
|
| 17 |
-
DEBUG =
|
| 18 |
punctuation = (
|
| 19 |
string.punctuation
|
| 20 |
+ "«»—…“”"
|
|
|
|
| 14 |
import re, string
|
| 15 |
|
| 16 |
stop_words = set(nltk.corpus.stopwords.words("english"))
|
| 17 |
+
DEBUG = False
|
| 18 |
punctuation = (
|
| 19 |
string.punctuation
|
| 20 |
+ "«»—…“”"
|