mirror of
https://github.com/explosion/spaCy.git
synced 2026-01-07 17:21:15 +03:00
Instead of a hard-coded NER tag simplification function that was only
intended for NorNE, map NER tags in CoNLL-U converter using a dict
provided as JSON as a command-line option.
Map NER entity types or new tag or to "" for 'O', e.g.:
```
{"PER": "PERSON", "BAD": ""}
=>
B-PER -> B-PERSON
B-BAD -> O
```
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| conll_ner2json.py | ||
| conllu2json.py | ||
| iob2json.py | ||
| jsonl2json.py | ||