MCPcopy Index your code
hub / github.com/clips/pattern / 04-KNN.py

File 04-KNN.py

examples/05-vector/04-KNN.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import os, sys; sys.path.insert(0, os.path.join("..", ".."))
2
3from pattern.web import Twitter
4from pattern.en import Sentence, parse

Callers

nothing calls this directly

Calls 13

ModelClass · 0.90
TwitterClass · 0.90
parseFunction · 0.90
searchFunction · 0.90
DocumentClass · 0.90
KNNClass · 0.90
lenFunction · 0.85
SentenceClass · 0.50
insertMethod · 0.45
searchMethod · 0.45
appendMethod · 0.45
trainMethod · 0.45

Tested by

no test coverage detected