from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
model = AutoModelForTokenClassification.from_pretrained("akdeniz27/modernbert-base-tr-uncased-ner")
tokenizer = AutoTokenizer.from_pretrained("akdeniz27/modernbert-base-tr-uncased-ner")
# tokenizer.model_max_length = 512 # Model max_length could be set here (max 8192 as default)
ner = pipeline("token-classification", model=model, tokenizer=tokenizer, aggregation_strategy="first")
ner("your text here")
modernbert-base-tr-uncased-ner huggingface.co is an AI model on huggingface.co that provides modernbert-base-tr-uncased-ner's model effect (), which can be used instantly with this akdeniz27 modernbert-base-tr-uncased-ner model. huggingface.co supports a free trial of the modernbert-base-tr-uncased-ner model, and also provides paid use of the modernbert-base-tr-uncased-ner. Support call modernbert-base-tr-uncased-ner model through api, including Node.js, Python, http.
modernbert-base-tr-uncased-ner huggingface.co is an online trial and call api platform, which integrates modernbert-base-tr-uncased-ner's modeling effects, including api services, and provides a free online trial of modernbert-base-tr-uncased-ner, you can try modernbert-base-tr-uncased-ner online for free by clicking the link below.
akdeniz27 modernbert-base-tr-uncased-ner online free url in huggingface.co:
modernbert-base-tr-uncased-ner is an open source model from GitHub that offers a free installation service, and any user can find modernbert-base-tr-uncased-ner on GitHub to install. At the same time, huggingface.co provides the effect of modernbert-base-tr-uncased-ner install, users can directly use modernbert-base-tr-uncased-ner installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
modernbert-base-tr-uncased-ner install url in huggingface.co: