MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / main

Function main

scripts/embed_cli.py:7–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def main() -> None:
8 if len(sys.argv) < 2:
9 print("Usage: embed_cli.py <sentence1> [sentence2 ...]")
10 return
11 cache = ModelCache()
12 embeddings = get_bert_embeddings_fast(sys.argv[1:], cache)
13 for emb in embeddings:
14 print(emb)
15
16
17if __name__ == "__main__":

Callers 1

embed_cli.pyFile · 0.70

Calls 3

ModelCacheClass · 0.90
get_bert_embeddings_fastFunction · 0.90
printFunction · 0.50

Tested by

no test coverage detected