Examples of KEAPhraseFilter


Examples of com.openkm.kea.filter.KEAPhraseFilter

      int c;
      while ((c = is.read()) != -1) {
        txtStr.append((char) c);
      }

      KEAPhraseFilter kpf = new KEAPhraseFilter();

      HashMap<String, Counter> hash = m_KEAFilter.getPhrasesForDictionary(kpf.tokenize(txtStr
          .toString()));
      Iterator<String> it = hash.keySet().iterator();
     
      while (it.hasNext()) {
        String phrase = it.next();
View Full Code Here

Examples of kea.filters.KEAPhraseFilter

    if (!instanceInfo.attribute(m_KeyphrasesAtt).isString() ||
        !instanceInfo.attribute(m_DocumentAtt).isString()) {
      throw new Exception("Keyphrase attribute and document attribute " +
      "need to be string attributes.");
    }
    m_PunctFilter = new KEAPhraseFilter();
    int[] arr = new int[1];
    arr[0] = m_DocumentAtt;
    m_PunctFilter.setAttributeIndicesArray(arr);
    m_PunctFilter.setInputFormat(instanceInfo);
    m_PunctFilter.setDisallowInternalPeriods(getDisallowInternalPeriods());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.