mirror of
https://github.com/explosion/spaCy.git
synced 2025-05-01 22:33:40 +03:00
Rename modules for consistency (#11286)
* rename Python module to entity_ruler * rename Python module to attribute_ruler
This commit is contained in:
parent
e581eeac34
commit
5d54c0e32a
|
@ -1,9 +1,9 @@
|
||||||
from .attributeruler import AttributeRuler
|
from .attribute_ruler import AttributeRuler
|
||||||
from .dep_parser import DependencyParser
|
from .dep_parser import DependencyParser
|
||||||
from .edit_tree_lemmatizer import EditTreeLemmatizer
|
from .edit_tree_lemmatizer import EditTreeLemmatizer
|
||||||
from .entity_linker import EntityLinker
|
from .entity_linker import EntityLinker
|
||||||
from .ner import EntityRecognizer
|
from .ner import EntityRecognizer
|
||||||
from .entityruler import EntityRuler
|
from .entity_ruler import EntityRuler
|
||||||
from .lemmatizer import Lemmatizer
|
from .lemmatizer import Lemmatizer
|
||||||
from .morphologizer import Morphologizer
|
from .morphologizer import Morphologizer
|
||||||
from .pipe import Pipe
|
from .pipe import Pipe
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: AttributeRuler
|
title: AttributeRuler
|
||||||
tag: class
|
tag: class
|
||||||
source: spacy/pipeline/attributeruler.py
|
source: spacy/pipeline/attribute_ruler.py
|
||||||
new: 3
|
new: 3
|
||||||
teaser: 'Pipeline component for rule-based token attribute assignment'
|
teaser: 'Pipeline component for rule-based token attribute assignment'
|
||||||
api_string_name: attribute_ruler
|
api_string_name: attribute_ruler
|
||||||
|
@ -34,7 +34,7 @@ how the component should be configured. You can override its settings via the
|
||||||
| `validate` | Whether patterns should be validated (passed to the `Matcher`). Defaults to `False`. ~~bool~~ |
|
| `validate` | Whether patterns should be validated (passed to the `Matcher`). Defaults to `False`. ~~bool~~ |
|
||||||
|
|
||||||
```python
|
```python
|
||||||
%%GITHUB_SPACY/spacy/pipeline/attributeruler.py
|
%%GITHUB_SPACY/spacy/pipeline/attribute_ruler.py
|
||||||
```
|
```
|
||||||
|
|
||||||
## AttributeRuler.\_\_init\_\_ {#init tag="method"}
|
## AttributeRuler.\_\_init\_\_ {#init tag="method"}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: EntityRuler
|
title: EntityRuler
|
||||||
tag: class
|
tag: class
|
||||||
source: spacy/pipeline/entityruler.py
|
source: spacy/pipeline/entity_ruler.py
|
||||||
new: 2.1
|
new: 2.1
|
||||||
teaser: 'Pipeline component for rule-based named entity recognition'
|
teaser: 'Pipeline component for rule-based named entity recognition'
|
||||||
api_string_name: entity_ruler
|
api_string_name: entity_ruler
|
||||||
|
@ -64,7 +64,7 @@ how the component should be configured. You can override its settings via the
|
||||||
| `scorer` | The scoring method. Defaults to [`spacy.scorer.get_ner_prf`](/api/scorer#get_ner_prf). ~~Optional[Callable]~~ |
|
| `scorer` | The scoring method. Defaults to [`spacy.scorer.get_ner_prf`](/api/scorer#get_ner_prf). ~~Optional[Callable]~~ |
|
||||||
|
|
||||||
```python
|
```python
|
||||||
%%GITHUB_SPACY/spacy/pipeline/entityruler.py
|
%%GITHUB_SPACY/spacy/pipeline/entity_ruler.py
|
||||||
```
|
```
|
||||||
|
|
||||||
## EntityRuler.\_\_init\_\_ {#init tag="method"}
|
## EntityRuler.\_\_init\_\_ {#init tag="method"}
|
||||||
|
|
|
@ -195,7 +195,7 @@ the data to and from a JSON file.
|
||||||
>
|
>
|
||||||
> To see custom serialization methods in action, check out the new
|
> To see custom serialization methods in action, check out the new
|
||||||
> [`EntityRuler`](/api/entityruler) component and its
|
> [`EntityRuler`](/api/entityruler) component and its
|
||||||
> [source](%%GITHUB_SPACY/spacy/pipeline/entityruler.py). Patterns added to the
|
> [source](%%GITHUB_SPACY/spacy/pipeline/entity_ruler.py). Patterns added to the
|
||||||
> component will be saved to a `.jsonl` file if the pipeline is serialized to
|
> component will be saved to a `.jsonl` file if the pipeline is serialized to
|
||||||
> disk, and to a bytestring if the pipeline is serialized to bytes. This allows
|
> disk, and to a bytestring if the pipeline is serialized to bytes. This allows
|
||||||
> saving out a pipeline with a rule-based entity recognizer and including all
|
> saving out a pipeline with a rule-based entity recognizer and including all
|
||||||
|
|
Loading…
Reference in New Issue
Block a user