got parsing to work, now calculates tag frequency and replaces rare words with _RARE_