MCPcopy
hub / github.com/kk7nc/Text_Classification / sent2features

Function sent2features

code/CRF.py:51–52  ·  view source on GitHub ↗
(sent)

Source from the content-addressed store, hash-verified

49
50
51def sent2features(sent):
52 return [word2features(sent, i) for i in range(len(sent))]
53
54def sent2labels(sent):
55 return [label for token, postag, label in sent]

Callers 1

CRF.pyFile · 0.85

Calls 1

word2featuresFunction · 0.85

Tested by

no test coverage detected