MCPcopy Index your code
hub / github.com/clips/pattern / get

Method get

pattern/vector/__init__.py:515–516  ·  view source on GitHub ↗
(self, word, default=None)

Source from the content-addressed store, hash-verified

513 def __getitem__(self, word):
514 return self.terms.__getitem__(word)
515 def get(self, word, default=None):
516 return self.terms.get(word, default)
517
518 def term_frequency(self, word):
519 """ Returns the term frequency of a given word in the document (0.0-1.0).

Callers 15

stemFunction · 0.45
countFunction · 0.45
character_ngramsFunction · 0.45
__init__Method · 0.45
loadMethod · 0.45
term_frequencyMethod · 0.45
cosine_similarityFunction · 0.45
distanceFunction · 0.45
exportMethod · 0.45
document_frequencyMethod · 0.45
information_gainMethod · 0.45
centroidFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected