ContinuumIO / topik

A Topic Modeling toolbox
BSD 3-Clause "New" or "Revised" License
92 stars 24 forks source link

Add list of phrases to look for in the simple parser. #67

Open gpfreitas opened 8 years ago

gpfreitas commented 8 years ago

In some domains, certain expressions (phrases, compound words) are very common and meaningful. Having the simple tokenizer recognize such words would be very useful, and it could be done simply by passing all tokens through a transformation that recognizes those expressions and replaces sequences of tokens with said expressions. Reference:

http://www.mimno.org/articles/phrases/

That would improve the performance of models using tokenizers.simple, especially in certain domains.