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

Method load

pattern/text/__init__.py:1328–1335  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1326 self._inverse = {}
1327
1328 def load(self):
1329 # have,,,has,,having,,,,,had,had,haven't,,,hasn't,,,,,,,hadn't,hadn't
1330 id = self._format[TENSES_ID[INFINITIVE]]
1331 for v in _read(self._path):
1332 v = v.split(",")
1333 dict.__setitem__(self, v[id], v)
1334 for x in (x for x in v if x):
1335 self._inverse[x] = v[id]
1336
1337 @property
1338 def path(self):

Callers 3

infinitivesMethod · 0.95
inflectionsMethod · 0.95
lemmaMethod · 0.95

Calls 3

_readFunction · 0.85
splitMethod · 0.45
__setitem__Method · 0.45

Tested by

no test coverage detected