Repository navigation
Labels and Models not harmonized between languages #13908
|
I try to use spaCy to extract entities from a german text and it's englich translation to compare the results. This is suprisingly hard to do since it appears that neither the models nor the labels are harmonizes across languages. Models:These are offered at [Trained Models & Pipelines(https://spacy.io/models):
When is use the install assistent to select models I get this combination (for using accurate models): From my point of view it's a reasonable expectation that this combination behaves similar. But it doesn't:
Since the main issue hasn't been made clear already:
Ideally things should be harmonized a bit more, like having a similar models use the same labels.. Why is that the case, should it considered to be a bug? |
Replies: 1 comment 1 reply
|
It's not a bug. The labels come from the corpus each pipeline was trained on, and those corpora differ by language:
That's also why Options for comparing German and English output:
In both cases, decide on one label scheme for the comparison. With the stock pipelines you can't get the 18-label output in German. |
It's not a bug. The labels come from the corpus each pipeline was trained on, and those corpora differ by language:
en_core_web_*PERSON,ORG,GPE,DATE,PRODUCT, ...de_core_news_sm/md/lgPER,LOC,ORG,MISCde_dep_news_trfnercomponent at allThat's also why
de_dep_news_trf"doesn't work": its pipeline istransformer, tagger, morphologizer, parser, lemmatizer, attribute_ruler. Thedepin the name means it has no NER. The Germancorepipelines are trained on WikiNER, which only has those four classes. "Jahr 2024" or "Edge" can only end up inMISC(see thesourceslisted for each model on htt…