mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 12:50:20 +03:00
add requirement for morphologizer,tagger to rule-based lemmatizer
This commit is contained in:
parent
005c20b463
commit
59a8e85793
|
@ -170,7 +170,7 @@ nlp = spacy.blank("sv")
|
||||||
nlp.add_pipe("lemmatizer", config={"mode": "lookup"})
|
nlp.add_pipe("lemmatizer", config={"mode": "lookup"})
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rule-based lemmatizer {id="lemmatizer-rule"}
|
### Rule-based lemmatizer {id="lemmatizer-rule",model="morphologizer,tagger"}
|
||||||
|
|
||||||
When training pipelines that include a component that assigns part-of-speech
|
When training pipelines that include a component that assigns part-of-speech
|
||||||
tags (a morphologizer or a tagger with a [POS mapping](#mappings-exceptions)), a
|
tags (a morphologizer or a tagger with a [POS mapping](#mappings-exceptions)), a
|
||||||
|
@ -194,7 +194,7 @@ information, without consulting the context of the token. The rule-based
|
||||||
lemmatizer also accepts list-based exception files. For English, these are
|
lemmatizer also accepts list-based exception files. For English, these are
|
||||||
acquired from [WordNet](https://wordnet.princeton.edu/).
|
acquired from [WordNet](https://wordnet.princeton.edu/).
|
||||||
|
|
||||||
### Trainable lemmatizer {id="lemmatizer-train",model="lemmatizer"}
|
### Trainable lemmatizer {id="lemmatizer-train",model="trainable_lemmatizer"}
|
||||||
|
|
||||||
The [`EditTreeLemmatizer`](/api/edittreelemmatizer) can learn form-to-lemma
|
The [`EditTreeLemmatizer`](/api/edittreelemmatizer) can learn form-to-lemma
|
||||||
transformations from a training corpus that includes lemma annotations. This
|
transformations from a training corpus that includes lemma annotations. This
|
||||||
|
|
Loading…
Reference in New Issue
Block a user