Instructions to use globis-university/deberta-v3-japanese-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use globis-university/deberta-v3-japanese-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="globis-university/deberta-v3-japanese-base")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("globis-university/deberta-v3-japanese-base") model = AutoModelForTokenClassification.from_pretrained("globis-university/deberta-v3-japanese-base") - Notebooks
- Google Colab
- Kaggle
issue about ner task
When I was training the NER task using this series of models, I encountered some issues.
After the normal training process, I obtained a model with relatively ideal evaluation metrics such as F1 score.
However, in actual use, I found that the models based on the base and small versions identified some discontinuous characters with very low scores (<0.5), while the large version did not have this problem.
In conjunction with your instructions, could this be caused by the difference between unigram and BPE? How should I deal with this issue?
I think I've solved this issue. The problem was that SentencePiece might add a token with the content "_" at the beginning of a sentence. The corresponding offset map value for this token was not the special token's expected (0, 0) but (0, 1), which interfered with the normal operation of char_to_token. After correcting the alignment, the data seems to be normal. However, it still needs to be observed.