What is Charabia and how does it work?
mainCharabia is a multilingual library used to tokenize queries and documents. Its primary role is to take a sentence or phrase and split it into smaller language units called tokens.
It provides a simple API to perform three main operations on text of a specific language:
- Segmentation: Splitting text into smaller units.
- Normalization: Transforming text (e.g., lowercase, removing marks, handling specific language rules).
- Tokenization: A combination of segmentation and normalization.
Charabia automatically detects the Script/Language of the input text to choose the appropriate specialized pipeline.