not enough arguments for method unAnnotateTree

6 views
Skip to first unread message

Arnold Angel

unread,
Jun 29, 2015, 5:42:47 PM6/29/15
to scal...@googlegroups.com
Anyone seen this before?

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;
                                              ^

David Hall

unread,
Jun 29, 2015, 5:44:05 PM6/29/15
to scal...@googlegroups.com
the berkeley parser changed its api recently. I don't know what library you're actually using (i don't think any "official" scalanlp library actually uses the Berkeley parser's code) but there's a new boolean flag whose meaning I forget.

--
You received this message because you are subscribed to the Google Groups "ScalaNLP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalanlp+u...@googlegroups.com.
To post to this group, send email to scal...@googlegroups.com.
Visit this group at http://groups.google.com/group/scalanlp.
For more options, visit https://groups.google.com/d/optout.

Arnold Angel

unread,
Jun 29, 2015, 6:02:41 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:

Reply all
Reply to author
Forward
0 new messages