MCPcopy Create free account
hub / github.com/baidu/DDParser / values

Method values

ddparser/parser/data_struct/corpus.py:48–54  ·  view source on GitHub ↗

Returns an iterator containing all the features of one sentence

(self)

Source from the content-addressed store, hash-verified

46
47 @property
48 def values(self):
49 """Returns an iterator containing all the features of one sentence"""
50 for field in self.fields:
51 if isinstance(field, Iterable):
52 yield getattr(self, field[0].name)
53 else:
54 yield getattr(self, field.name)
55
56 def __len__(self):
57 """Get sentence length"""

Callers 3

predictFunction · 0.80
parseMethod · 0.80
parse_segMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected