
 Usage: semkit read [IN] counts [OPTIONS] [WHAT]

 One count per phrase, in a new column `<column>_<what>`.

 what: "words" and "chars" — the words and the characters of the phrase; "count" — how many times
 the same phrase stands in the core; "number" — which occurrence of it this row is (1 for the
 first). Phrases are the same in any case and with ё as е; an empty cell has no count (an empty
 value). "share" — the cumulative share of the sum of `weight` (0..1) in row order;
 "share_of_total" — the value over the sum; both are rounded to 4 decimals and empty when the sum
 is 0. "abc" — the class by the cumulative share from the heaviest phrase down: "A" up to 80 %, "B"
 up to 95 %, "C" the rest. "share", "share_of_total" and "abc" need `weight`.
 weight: the column of numbers to share (a frequency), for "share", "share_of_total" and "abc".

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

 The step writes the count of each phrase to a new column <column>_count.

╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────╮
│   WHAT      <words|chars|count|number|share|share_of_  "words" and "chars" — the words and the   │
│             total|abc>                                 characters of the phrase; "count" — how   │
│                                                        many times the same phrase stands in the  │
│                                                        core; "number" — which occurrence of it   │
│                                                        this row is (1 for the first). Phrases    │
│                                                        are the same in any case and with ё as е; │
│                                                        an empty cell has no count (an empty      │
│                                                        value). "share" — the cumulative share of │
│                                                        the sum of `weight` (0..1) in row order;  │
│                                                        "share_of_total" — the value over the     │
│                                                        sum; both are rounded to 4 decimals and   │
│                                                        empty when the sum is 0. "abc" — the      │
│                                                        class by the cumulative share from the    │
│                                                        heaviest phrase down: "A" up to 80 %, "B" │
│                                                        up to 95 %, "C" the rest. "share",        │
│                                                        "share_of_total" and "abc" need `weight`. │
│                                                        The same as --what WHAT.                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --what          WHAT   "words" and "chars" — the words and the characters of the phrase; "count" │
│                        — how many times the same phrase stands in the core; "number" — which     │
│                        occurrence of it this row is (1 for the first). Phrases are the same in   │
│                        any case and with ё as е; an empty cell has no count (an empty value).    │
│                        "share" — the cumulative share of the sum of `weight` (0..1) in row       │
│                        order; "share_of_total" — the value over the sum; both are rounded to 4   │
│                        decimals and empty when the sum is 0. "abc" — the class by the cumulative │
│                        share from the heaviest phrase down: "A" up to 80 %, "B" up to 95 %, "C"  │
│                        the rest. "share", "share_of_total" and "abc" need `weight`.              │
│ --weight        <str>  the column of numbers to share (a frequency), for "share",                │
│                        "share_of_total" and "abc".                                               │
│ --as            NAME   Write the result to a new column NAME and keep the working column as it   │
│                        is.                                                                       │
│ --help                 Show this message and exit.                                               │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

