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

Method document

pattern/vector/__init__.py:935–939  ·  view source on GitHub ↗

Returns the Document with the given name (assuming document names are unique).

(self, name)

Source from the content-addressed store, hash-verified

933 self.__delitem__(self.documents.index(document))
934
935 def document(self, name):
936 """ Returns the Document with the given name (assuming document names are unique).
937 """
938 if name in self._index:
939 return self._index[name]
940
941 def document_frequency(self, word):
942 """ Returns the document frequency for the given word or feature.

Callers 5

findTagsMethod · 0.80
findEnclosuresMethod · 0.80
findXFNMethod · 0.80
test_model_appendMethod · 0.80
02-model.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_model_appendMethod · 0.64