MCPcopy
hub / github.com/nltk/nltk / read_value

Method read_value

nltk/featstruct.py:2076–2080  ·  view source on GitHub ↗
(self, s, position, reentrances, parser)

Source from the content-addressed store, hash-verified

2074 RANGE_RE = re.compile(r"(-?\d+):(-?\d+)")
2075
2076 def read_value(self, s, position, reentrances, parser):
2077 m = self.RANGE_RE.match(s, position)
2078 if not m:
2079 raise ValueError("range", position)
2080 return (int(m.group(1)), int(m.group(2))), m.end()
2081
2082 def unify_base_values(self, fval1, fval2, bindings):
2083 if fval1 is None:

Callers

nothing calls this directly

Calls 2

matchMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected