nschneid / pysupersensetagger

AMALGrAM, an English supersense tagger written in Python
GNU General Public License v3.0
33 stars 12 forks source link

In decoding, consider iterating over percepts (outer loop), scoring all labels at once #7

Closed nschneid closed 10 years ago

nschneid commented 10 years ago

Due to memory locality in the weight vector, this may be better than iterating first over labels. (Inspired by JAMR.)

supersense tagging speed comparison on ~/dev/e/PySupersenseTagger/test-sst/learningtiny (1 iter + dev prediction, 146 labels, 600k weights):

speedup: (234.8-206.4)/234.8 = 12%