Token Classification
Transformers
ONNX
Safetensors
Portuguese
bert
feature-extraction
dependency-parsing
universal-dependencies
pos-tagging
lemmatization
morphological-tagging
porttinari
hubparser
custom_code
Eval Results (legacy)
Instructions to use H2IA/HubParser-Large-L with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use H2IA/HubParser-Large-L with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="H2IA/HubParser-Large-L", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("H2IA/HubParser-Large-L", trust_remote_code=True) model = AutoModel.from_pretrained("H2IA/HubParser-Large-L", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Card: repositórios agora na organização H2IA
Browse files52 unmodified lines535455565758595657585960616217 unmodified lines808182838384858621 unmodified lines10810911011111111211311452 unmodified lines
| Modelo | UPOS | LEMMA | FEATS | UAS | LAS | MLAS ||---|---|---|---|---|---|---|| [HubParser-Base-L](https://huggingface.co/guilhermedallm4/HubParser-Base-L) | 99.20 | 98.96 | 98.90 | 94.18 | 92.77 | 86.55 || [HubParser-Base-B](https://huggingface.co/guilhermedallm4/HubParser-Base-B) | 99.33 | 99.11 | 99.07 | 96.96 | 95.94 | 92.12 || **[HubParser-Large-L](https://huggingface.co/guilhermedallm4/HubParser-Large-L) (este modelo)** | **99.28** | **99.00** | **99.01** | **95.15** | **93.79** | **88.14** || [HubParser-Large-B](https://huggingface.co/guilhermedallm4/HubParser-Large-B) | 99.38 | 99.09 | 99.10 | 97.20 | 96.16 | 92.69 || [HubParser-Base-L](https://huggingface.co/H2IA/HubParser-Base-L) | 99.20 | 98.96 | 98.90 | 94.18 | 92.77 | 86.55 || [HubParser-Base-B](https://huggingface.co/H2IA/HubParser-Base-B) | 99.33 | 99.11 | 99.07 | 96.96 | 95.94 | 92.12 || **[HubParser-Large-L](https://huggingface.co/H2IA/HubParser-Large-L) (este modelo)** | **99.28** | **99.00** | **99.01** | **95.15** | **93.79** | **88.14** || [HubParser-Large-B](https://huggingface.co/H2IA/HubParser-Large-B) | 99.38 | 99.09 | 99.10 | 97.20 | 96.16 | 92.69 |
## Resultados no teste do Porttinari
17 unmodified lines```pythonfrom transformers import AutoModel, AutoTokenizer
repo = "guilhermedallm4/HubParser-Large-L"repo = "H2IA/HubParser-Large-L"tokenizer = AutoTokenizer.from_pretrained(repo)model = AutoModel.from_pretrained(repo, trust_remote_code=True).eval() # .to("cuda") se houver GPU
21 unmodified lines
A pasta `onnx/` traz o modelo exportado em meia precisão (`model_fp16.onnx`, 639 MB) para rodar com o[ONNX Runtime Web](https://onnxruntime.ai/docs/tutorials/web/), na GPU (WebGPU) ou na CPU (WebAssembly).É ele que roda no Space [HubParser](https://huggingface.co/spaces/guilhermedallm4/HubParser), inteiramente no navegador.É ele que roda no Space [HubParser](https://huggingface.co/spaces/H2IA/HubParser), inteiramente no navegador.
- Entrada: `input_ids` [1, L] (int64), uma frase por vez, sem padding, com [CLS] e [SEP] (L ≤ 512).- Saídas (logits por subtoken): `upos` [1, L, 16], `head` [1, L, 200] (classe 0 = raiz, k = palavra k), `deprel` [1, L, 44], `lemma` [1, L, 252] e `feats` [1, L, 174]. Use a posição do primeiro subtoken de cada palavra.README.md+6-6