Fix _classify_trigrams() to extract trigrams instead of terms