在domain文件的entities部分列出了所有能够被任何在pipeline中配置的实体提取器提取的entities,具体示例如下:

entities:

- PERSON # entity extracted by SpacyEntityExtractor

- time # entity extracted by DucklingEntityExtractor

- membership_type # custom entity extracted by DIETClassifier

- priority # custom entity extracted by DIETClassifier

你也可以列出一个entity属于的roles和groups:

entities:

- city: # custom entity extracted by DIETClassifier

roles:

- from

- to

- topping: # custom entity extracted by DIETClassifier

groups:

- 1

- 2

- size: # custom entity extracted by DIETClassifier

groups:

- 1

- 2