
 Usage: semkit read [IN] coverage-meaning [OPTIONS] [TEXT]

 For each core phrase, the paragraph nearest it by meaning, and whether the text covers the phrase.

 threshold: the similarity from 0 to 1 from which a paragraph covers a phrase.

 The report has a row for each phrase, in its order and with its index: url and number (of the
 paragraph), the paragraph, similarity (4 places) and covered (yes or no); with clusters also
 cluster_covered. A phrase with no words, or a text with no paragraphs, gives an empty paragraph,
 no similarity and covered no.

 Example: semkit read --text "купить диван" --text "кресло" coverage-meaning article.txt
 --threshold 0.5 write -
 -> купить диван, , 1, Купить диван в Москве. Диван угловой, диван недорогой. Углы дивана и
 кресла., 0.7356, yes; кресло, , 1, Купить диван в Москве. Диван угловой, диван недорогой. Углы
 дивана и кресла., -0.2111, no

 text: a text file (.txt), or a table of url and text, that is cut into paragraphs like
 `split-paragraphs` does; the table file is read like `read` does.
 cluster: the column of the clusters of the phrases in the current table (as `cluster-meaning`
 gives it); every phrase also gets cluster_covered, yes when any phrase of its cluster is covered.
 model: the encoder, pulled once with `semkit models pull NAME`: e5-small, bge-m3, potion, or
 hf:<id> of a model of the Hugging Face hub. Without --threshold the step takes the threshold of
 the model; a hub model has none.

 The step takes the working column as the core and adds the columns url, number, paragraph,
 similarity and covered (and cluster_covered) right after it; the rows stay.

╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────╮
│   TEXT      <str>  a text file (.txt), or a table of url and text, that is cut into paragraphs   │
│                    like `split-paragraphs` does; the table file is read like `read` does. The    │
│                    same as --text TEXT.                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --text             TEXT     a text file (.txt), or a table of url and text, that is cut into     │
│                             paragraphs like `split-paragraphs` does; the table file is read like │
│                             `read` does.                                                         │
│ --threshold        <float>  the similarity from 0 to 1 from which a paragraph covers a phrase.   │
│ --model            <str>    the encoder, pulled once with `semkit models pull NAME`: e5-small,   │
│                             bge-m3, potion, or hf:<id> of a model of the Hugging Face hub.       │
│                             Without --threshold the step takes the threshold of the model; a hub │
│                             model has none.                                                      │
│                             [default: e5-small]                                                  │
│ --cluster          <str>    the column of the clusters of the phrases in the current table (as   │
│                             `cluster-meaning` gives it); every phrase also gets cluster_covered, │
│                             yes when any phrase of its cluster is covered.                       │
│ --help                      Show this message and exit.                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

