Word embedding models
Gensim is a Python library for topic modelling, document indexing and similarity retrieval with large corpora. It supports and offers various embedding models.
There are various pretrained embedding models that you can download, some are available only for English, others for many more languages; they also vary in the kinds of text used for training (eg, wikipedia, social media, etc). Here’s a non-exhaustive list:
- GloVe - pretrained embeddings whose training objective combines global matrix factorization and local context windows
- fasttext - pretrained embeddings for some 150 languages (some fasttext models are based on subword units)
- ConceptNet Numberbatch - embeddings enhanced with semantic knowledge from the ConceptNet knowledge graph
- Kyubyong Park’s repository - pretrained word2vec embeddings in some 30 languages
Text analysis packages
- TextDescriptives - syntactic complexity and coherence measures
- Detoxify - tools for handling toxicity; this tool is not as lightweight as others, for it is based on large pretrained encoders
- scireadability, textstat and textcomplexity - readability and grade level (with some support beyond English)
- Elfen - readability metrics, incl. semantic ones (e.g. number of hedges), sentiment, emotion (e.g. valence, arousal, dominance) and psycholinguistic (e.g. concreteness, iconicity) features
- TRUNAJOD - text complexity including syntactic, semantic, and discourse levels (built on spaCy)
- spaCy - broad range of NLP tools
- A few tools based on pretrained encoders (eg, BERT/RoBERTa): emotion, politeness and sentiment