
 Usage: semkit read [IN] synonym-candidates [OPTIONS]

 Synonym candidates for the units of the core, from a thesaurus (RuWordNet) and word vectors
 (navec).

 A candidate is a proposal for the Human to pick, not a synonym: the thesaurus gives the words and
 phrases of the same synset (score 1), the word vectors the nearest words (the score is the cosine,
 4 places). A unit is a word of a phrase of the core, or a run of its words that is a sense of
 several words of the thesaurus («таможенное оформление»): of all the ways to cut a phrase into
 runs, the one with the most words inside such senses wins, then the one with fewer units, then the
 first from the left. A word inside a run has no candidates of its own. A stopword is no unit by
 itself, and so is a word with digits. The step works on lemmas; a candidate of the thesaurus has
 any number of words, a candidate of the vectors is one word, and each is given once for a unit.
 The report has one row for each candidate: word (the unit), candidate, source, score and in_core
 (whether the candidate is a run of words of a phrase of the core), units in the order of the core,
 each with the candidates of the thesaurus first, then of the vectors from the nearest.
 top: how many of the nearest words the word vectors give for each word.
 all: give every candidate. By default only the candidates that occur in the core.
 as_synonyms: the report as the file the steps with `--synonyms` read: the columns word and
 synonyms (the candidates of a word joined by a space), one row for each word that has some. The
 steps compare word by word, so it holds the candidates of one word of the units of one word only.
 as_slots: the report as the table of slots that `linear-combinations` reads: a column slot_1,
 slot_2… for each unit of the one phrase of the core, in its order; the first row holds the units,
 the rows under them their candidates. More than one phrase, or together with as_synonyms, is
 refused.

 Example: semkit read --text "растаможка" --text "таможенное оформление" synonym-candidates
 --source ruwordnet write -
 -> растаможка, таможенное оформление, ruwordnet, 1.0, true; таможенное оформление, растаможка,
 ruwordnet, 1.0, true

 source: the data to take candidates from, pulled once with `semkit models pull NAME`: ruwordnet
 (the thesaurus), navec (the word vectors) or both.

 The step makes a table of its result; it replaces the current table, its first text column is the
 working one. Its candidates are for the Human to pick; the picked go to --synonyms of the steps
 that take them. A candidate may have several words, and so may a unit; --as-synonyms keeps the
 words of one word only.

╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --top                <int>                   how many of the nearest words the word vectors give │
│                                              for each word.                                      │
│                                              [default: 10]                                       │
│ --all                                        give every candidate. By default only the           │
│                                              candidates that occur in the core.                  │
│ --as-synonyms                                the report as the file the steps with `--synonyms`  │
│                                              read: the columns word and synonyms (the candidates │
│                                              of a word joined by a space), one row for each word │
│                                              that has some. The steps compare word by word, so   │
│                                              it holds the candidates of one word of the units of │
│                                              one word only.                                      │
│ --as-slots                                   the report as the table of slots that               │
│                                              `linear-combinations` reads: a column slot_1,       │
│                                              slot_2… for each unit of the one phrase of the      │
│                                              core, in its order; the first row holds the units,  │
│                                              the rows under them their candidates. More than one │
│                                              phrase, or together with as_synonyms, is refused.   │
│ --source             <ruwordnet|navec|both>  the data to take candidates from, pulled once with  │
│                                              `semkit models pull NAME`: ruwordnet (the           │
│                                              thesaurus), navec (the word vectors) or both.       │
│                                              [default: both]                                     │
│ --help                                       Show this message and exit.                         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

