Run this model with HF Jobs
Run CodeNLP/pdn2_v08_nkjp_large on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CodeNLP/pdn2_v08_nkjp_large. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CodeNLP/pdn2_v08_nkjp_large on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CodeNLP/pdn2_v08_nkjp_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CodeNLP/pdn2_v08_nkjp_large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="CodeNLP/pdn2_v08_nkjp_large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("CodeNLP/pdn2_v08_nkjp_large") model = AutoModel.from_pretrained("CodeNLP/pdn2_v08_nkjp_large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Added model usage.
Browse files3 unmodified lines4567893 unmodified linesThe model was trained on the NKJP corpus to recognize 12 categories of NEs.## AuthorMichał Marcińczuk <marcinczuk@gmail.com>3 unmodified lines4567891011121314151617181920212223242526272829303132333435363738394041424344454647483 unmodified linesThe model was trained on the NKJP corpus to recognize 12 categories of NEs.## Usage```bashconda create -n pdn2_demo python=3.8``````bashconda activate pdn2_demo``````bashhttps://pypi.clarin-pl.eu/packages/poldeepner2-0.8.2-py3-none-any.whl``````bashgit clone https://huggingface.co/CodeNLP/pdn2_v08_nkjp_large``````pythonimport poldeepner2ner = poldeepner2.load("pdn2_v08_nkjp_large", device="cpu")text = "Od 15 września 2023 roku premierem Łotwy jest Evika Siliņa"for an in ner.process_text(text):print(f"[{an.start}:{an.end}] {an.text} ({an.label})")```Expected output:```[3:24] 15 września 2023 roku (date)[35:40] Łotwy (placeName_country)[46:58] Evika Siliņa (persName)[46:51] Evika (persName_forename)[52:58] Siliņa (persName_surname)```## AuthorMichał Marcińczuk <marcinczuk@gmail.com>
README.md+39