-
Notifications
You must be signed in to change notification settings - Fork 41
Analyzers
Analyzers are used to pre-process, tokenize and normalize text. If you happen to be familiar with analyzers in Lucene, Solr and/or Elasticsearch, the concept is exactly the same although the details may differ a little bit. Analyzers are typically language-specific.
As of version 0.38, Annif supports three analyzers: simple
, snowball
and voikko
.
The simple
analyzer only splits text into words and turns them all into lowercase.
The snowball
analyzer additionally performs stemming. It takes a language name as parameter, e.g. snowball(english)
or snowball(finnish)
. You can use any language supported by the NLTK Snowball stemmer; see the NLTK stemmer documentation for details on supported languages.
The voikko
analyzer performs lemmatization for Finnish. It takes a language code as parameter, e.g. voikko(fi)
. This analyzer needs to be installed separately. Assuming you are using Ubuntu, you fill first need to install the libvoikko1
and voikko-fi
packages:
sudo apt install libvoikko1 voikko-fi
Then install the optional feature:
pip install annif[voikko]
- Home
- Getting started
- System requirements
- Optional features and dependencies
- Usage with Docker
- Architecture
- Commands
- Web user interface
- REST API
- Corpus formats
- Project configuration
- Analyzers
- Transforms
- Language detection
- Hugging Face Hub integration
- Achieving good results
- Reusing preprocessed training data
- Running as a WSGI service
- Backward compatibility between Annif releases
- Backends
- Development flow, branches and tags
- Release process
- Creating a new backend