2010-05-28 37 views

回答

1

這很容易實現。

  1. 使用Split(字符串類的成員函數)將字符串拆分爲單詞。 (你可以在codeproject url中使用分隔符)。

  2. 循環列舉所有n-gram並使用Dictionary<string, int>來計數。