Downloads · 30 days
43
13% of all-time downloads
sabaridsnfuji/xlm-roberta-name-entity-recognition-japanese
xlm-roberta-name-entity-recognition-japanese is a machine learning model from sabaridsnfuji. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
libraryname: transformers license: apache-2.0 language: - ja basemodel: - FacebookAI/xlm-roberta-base
Downloads · 30 days
43
13% of all-time downloads
All-time downloads
324
Public
Parameters
277M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
library_name: transformers license: apache-2.0 language:
This model is built using XLM-RoBERTa for Japanese text to recognize named entities such as persons, organizations, locations, and other categories. The model is designed specifically for Japanese text and can be used for a variety of tasks that require entity extraction from Japanese documents or conversations.
Named Entity Recognition (NER) is a critical task in natural language processing (NLP) for identifying and classifying entities in text. This model recognizes named entities in Japanese, making it ideal for use in applications like document analysis, chatbots, or information retrieval in the Japanese language.
The model identifies the following tags:
| Class ID | Tag | Description |
|---|---|---|
| 0 | O | Outside any entity |
| 1 | PER | Person names |
| 2 | ORG | Organizations |
| 3 | ORG-P | Political orgs |
| 4 | ORG-O | Other orgs |
| 5 | LOC | Locations |
| 6 | INS | Institutions |
| 7 | PRD | Products |
| 8 | EVT | Events |
xlm-roberta-baseHere’s an example input sentence and the expected NER output.
中国では、中国共産党による一党統治が続く。
| Token | Predicted Tag |
|---|---|
| 中国 | LOC |
| では | O |
| 、 | O |
| 中国 | ORG-P |
| 共産党 | ORG-P |
| による | O |
| 一党 | O |
| 統治 | O |
| が | O |
| 続く | O |
| 。 | O |
The NER output is also visualized in color-coded format for ease of interpretation:
Entities Output:
LOC (Location): China (中国)ORG-P (Political Organization): Chinese Communist Party (中国共産党)Here’s the updated README section with the class names replacing the class IDs:
The following performance metrics were achieved by the model during evaluation:
| Class | Recall | Precision |
|---|---|---|
| O | 99.94% | 99.00% |
| PER | 97.53% | 98.80% |
| ORG | 99.22% | 96.23% |
| ORG-P | 95.30% | 99.71% |
| ORG-O | 97.80% | 98.26% |
| LOC | 99.03% | 96.71% |
| INS | 98.88% | 99.07% |
| PRD | 99.31% | 99.67% |
| EVT | 98.96% | 98.31% |
The model demonstrates strong overall performance, with particularly high F1-scores and balanced class-wise precision and recall values.