mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-27 08:29:51 +03:00
Update EL task docs.
This commit is contained in:
parent
fac19519ce
commit
15d6204636
|
@ -453,15 +453,19 @@ The KB .yaml file has to stick to the following format:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
entities:
|
entities:
|
||||||
ID1: # This can be whatever ID identifies this entity in your knowledge base.
|
# The key should be whatever ID identifies this entity in your knowledge base.
|
||||||
|
ID1:
|
||||||
name: "..."
|
name: "..."
|
||||||
desc: "..."
|
desc: "..."
|
||||||
ID2:
|
ID2:
|
||||||
...
|
...
|
||||||
aliases: # Aliases in your knowledge base - e. g. "Apple" for the entity "Apple Inc.".
|
# Data on aliases in your knowledge base - e. g. "Apple" for the entity "Apple Inc.".
|
||||||
|
aliases:
|
||||||
- alias: "..."
|
- alias: "..."
|
||||||
entities: ["ID1", "ID2", ...] # List of all entities that this alias refers to.
|
# List of all entities that this alias refers to.
|
||||||
probabilities: [0.5, 0.2, ...] # Prior probabilities that this alias refers to the n-th entity in the "entities" attribute. This is optional.
|
entities: ["ID1", "ID2", ...]
|
||||||
|
# Optional: prior probabilities that this alias refers to the n-th entity in the "entities" attribute.
|
||||||
|
probabilities: [0.5, 0.2, ...]
|
||||||
- alias: "..."
|
- alias: "..."
|
||||||
entities: [...]
|
entities: [...]
|
||||||
probabilities: [...]
|
probabilities: [...]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user