Package gannuNLP.corpus

Examples of gannuNLP.corpus.ContainsLemmaFilter


  /**
   * This method removes all the duplicated words from all the bag of words of a target lemma.
   * @param lemma The target lemma.
   */
  public void modifyBow(Lemma lemma) throws Exception {
    ContainsLemmaFilter filter=new ContainsLemmaFilter("");   
    Corpus aux=new Corpus(corpus);
    filter.filter(aux, lemma);
    ArrayList<WSM> wsm=new ArrayList<WSM>();
    for(Input document:aux.getDocuments())
    {
      wsm.addAll(this.kw.extractKeywords(document, 10, true));
    }
View Full Code Here

TOP

Related Classes of gannuNLP.corpus.ContainsLemmaFilter

Copyright © 2018 www.massapicom. 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.