
 Usage: semkit read [IN] ngrams [OPTIONS]

 Every run of `n` words over all phrases, counted: a table ngram, count, docs, sum and forms.

 The column count holds the occurrences; docs, in how many texts (rows of the input before
 split-text cut them) the gram occurs at least once; sum, with `weight`, the weight; forms, with
 `lemmas`, the word forms met for the gram, most frequent first, joined by ', ' («диваны, диван»),
 for a gram of several words its distinct spellings, at most 5.

 The words are those of split-text: punctuation at the edges of a word is dropped («руб.» is
 «руб»), a sign such as ★ is no word, a number with inner points, commas or hyphens is one word
 («31.03.2026»). Sorted by count, biggest first, then by ngram. Words are compared in any case and
 with ё as е.
 n: how many words in a gram.
 lemmas: count lemmas of the words («диваны» is «диван»).
 stopwords: on, every word counts; off (--no-stopwords), the grams are made of the words that are
 no stopwords, and a stopword between two of them stays inside the gram («купить диван в москве»
 gives «купить диван» and «диван в москве»); stopwords are found in any case.
 weight: a column of numbers of the table (a frequency); sum adds its value once per occurrence.

 Example: semkit read --text "купить диван" --text "купить диван недорого" ngrams write -
 -> диван, 2, 2; купить, 2, 2; недорого, 1, 1
 Example: semkit read --text "купить диван" --text "купить диван недорого" ngrams -n 2 write -
 -> купить диван, 2, 2; диван недорого, 1, 1

 The step counts the working column; the table replaces the current one, its column ngram is the
 working one.

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│              -n                    <int>  how many words in a gram. [default: 1]                 │
│ --lemmas                                  count lemmas of the words («диваны» is «диван»).       │
│ --stopwords      --no-stopwords           on, every word counts; off (--no-stopwords), the grams │
│                                           are made of the words that are no stopwords, and a     │
│                                           stopword between two of them stays inside the gram     │
│                                           («купить диван в москве» gives «купить диван» and      │
│                                           «диван в москве»); stopwords are found in any case.    │
│                                           [default: stopwords]                                   │
│ --weight                           <str>  a column of numbers of the table (a frequency); sum    │
│                                           adds its value once per occurrence.                    │
│ --help                                    Show this message and exit.                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

