コード例 #1
0
 /// <summary>
 /// Returns a term that corresponds to a given word.
 /// A new term is created if such term doesn't exist.
 /// </summary>
 public Term getTerm(String value)
 {
     Term term = null;
     if (terms.TryGetValue(value, out term))
     {
         return term;
     }
     term = new Term(value);
     terms.Add(value, term);
     return term;
 }
コード例 #2
0
ファイル: Query.cs プロジェクト: baccka/ir-project
 public QueryTerm(Term term, int frequency)
 {
     this.term = term;
     this.frequency = frequency;
 }