title: Wordnet Lemmatizer for R
body: <p>I would like to use the <code>wordnet</code> lemmatizer to lemmatize the words in <code>a</code></p>
  
  <pre><code>&gt; a&lt;-c("He saw a see-saw on a sea shore", "she is feeling cold")
  &gt; a
  [1] "He saw a see-saw on a sea shore" "she is feeling cold"  
  </code></pre>
  
  <p>I convert <code>a</code> into a corpus and do pre-processing steps (like stopword removal, lemmatization etc)</p>
  
  <pre><code>&gt; a &lt;- Corpus(VectorSource(a))
  </code></pre>
  
  <p>I wanted to do the lemmatization in the below way,</p>
  
  <pre><code>&gt; filter &lt;- getTermFilter("ExactMatchFilter", a, TRUE)
  &gt; terms &lt;- getIndexTerms("NOUN", 1, filter)
  &gt; sapply(terms, getLemma)
  </code></pre>
  
  <p>but I get this error</p>
  
  <pre><code>&gt; filter &lt;- getTermFilter("ExactMatchFilter", a, TRUE)
  Error in .jnew(paste("com.nexagis.jawbone.filter", type, sep = "."), word,  : 
    java.lang.NoSuchMethodError: &lt;init&gt;
  </code></pre>
  
  <p>My idea is to lemmatize the whole corpus and not a single word, How can it be accomplished?</p>