Universe

ruTS

A library for statistics extraction from texts in Russian

The library allows extracting the following statistics from a text: basic statistics, readability metrics, lexical diversity metrics, morphological statistics

Example

import spacy import ruts nlp = spacy.load('ru_core_news_sm') nlp.add_pipe('basic', last=True) doc = nlp('мама мыла раму') doc._.basic.get_stats()

Author info

Sergey Shkarin

GitHubSergeyShk/ruTS

Categories pipeline standalone

Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea label on the issue tracker.

Read the docsJSON source