code: public static int getTermFrequency(String term)
      {
          Attribute attribute = get(term);
          if (attribute == null) return 0;
          return attribute.totalFrequency;
      }
docs: 获取词频
  
  @param term
  @return