Last Error. not enough arguments for method unAnnotateTree: (x$1: edu.berkeley.nlp.syntax.Tree[String], x$2

10 views
Skip to first unread message

Arnold Angel

unread,
Jun 29, 2015, 5:42:47 PM6/29/15
to scal...@googlegroups.com


Anyone familiar with this type of error?

Error:(21, 47) not enough arguments for method unAnnotateTree: (x$1: edu.berkeley.nlp.syntax.Tree[String], x$2: Boolean)edu.berkeley.nlp.syntax.Tree[String].
Unspecified value parameter x$2.
    val roots = TreeAnnotations.unAnnotateTree(btree).getChildren;

Arnold Angel

unread,
Jun 29, 2015, 6:03:05 PM6/29/15
to scal...@googlegroups.com

needed to modify the following line in Berkley.scala by adding a comma and true.

 

val roots = TreeAnnotations.unAnnotateTree(btree, true).getChildren;

 

Original code was throwing an error like the following:

 

Error:(21, 47) not enough arguments for method unAnnotateTree: (x$1: edu.berkeley.nlp.syntax.Tree[String], x$2: Boolean)edu.berkeley.nlp.syntax.Tree[String].

Unspecified value parameter x$2.

    val roots = TreeAnnotations.unAnnotateTree(btree).getChildren;

                                              ^

Reply all
Reply to author
Forward
0 new messages