add license
make our version of the viterbi algorithm work sensibly on very large tagsets