]))
{
> val lemma =
token.get(classOf[LemmaAnnotation])
>
if (lemma.length > 2 &&
!stopWords.contains(lemma) &&
>
isOnlyLetters(lemma)) {
>
lemmas += lemma.toLowerCase
> }
> }
>
lemmas
> }
>
> Th
s(lemma)) { lemmas
+=lemma.toLowerCase } } lemmas }
The error is
:37: error: value foreach is not a member of
java.util.List[edu.stanford.nlp.util.CoreMap]
for (sentence <- sentences; token <- sentence.get(classOf[TokensAnnot
ation])) {
^
{
> lemmas += lemma.toLowerCase
> }
> }
> lemmas
> }
>
> The error is
>
> :37: error: value foreach is not a member of
> java.util.List[edu.stanford.nlp.util.C