Patterns Files Structure
PATTERNS
The Cariochi Patterns service adopts the YAML format to define classes and their associated text patterns, providing users with a flexible and intuitive way to customize and expand the service's capabilities effectively.
imports
Section
imports
SectionThe "imports" section allows users to include other YAML files within the current file, facilitating the reuse of existing classes and patterns. This modularity ensures that patterns can be easily shared and applied across various contexts.
classes
Section
classes
SectionThe heart of the pattern file lies within the "classes" section, where users define specific classes and their corresponding text patterns. Each class can have multiple patterns associated with it, enhancing the service's ability to recognize diverse entities in the input text.
Users can define hierarchical classes in the pattern file using YAML format, enabling the organization of related classes in a structured manner with any depth of hierarchy.
Example Pattern Files
Below are examples showcasing the structure of pattern files in the Cariochi Patterns service:
More examples on demo.cariochi.com
Last updated