日期:2014-05-17 浏览次数:20515 次
public string fenci(string text)
{
string textFc = string.Empty;
Analyzer anal = new PanGuAnalyzer();
StringReader sb = new StringReader(text);
TokenStream ts = anal.ReusableTokenStream("", sb);
Token t = null;
while ((t = ts.Next()) != null)
{
textFc += t.TermText() + " ";
}
return textFc;
}