Hi Tomoko,

Please don't hesitate to open a JIRA issue and give your patch to fix
the error you found.

Koji
--
http://soleami.com/blog/comparing-document-classification-functions-of-lucene-and-mahout.html

(2014/12/14 11:11), Tomoko Uchida wrote:
Sorry again,
I checked the o.a.l.u.fst.TestFSTs.java, and found this modification seems
to be OK.

So, I changed scrachInts variable's type, from IntsRef  to
IntsRefBuilder. And it worked fine.

I think example codes in Javadocs are important to new developers (like me,)
would be glad if someone correct it.

Regards,
Tomoko


2014-12-11 0:34 GMT+09:00 Tomoko Uchida <tomoko.uchida.1...@gmail.com>:

Sorry, I paste a wrong link...

I run the "FST Construction example:" code in package.html with lucene
4.10.2, and saw a compile error.
http://lucene.apache.org/core/4_10_2/core/index.html

I run the "FST Construction example:" code in package.html with lucene
4.10.2, and saw a compile error.

http://lucene.apache.org/core/4_10_2/core/index.html?org/apache/lucene/util/fst/package-summary.html

2014-12-11 0:32 GMT+09:00 Tomoko Uchida <tomoko.uchida.1...@gmail.com>:

Hi,

I run the "FST Construction example:" code in package.html with lucene
4.10.2, and saw a compile error.
http://lucene.apache.org/core/4_10_2/core/index.html

Error ocurred at this line.
builder.add(Util.toIntsRef(scratchBytes, scratchInts), outputValues[i]);

Consulting with Javadoc, I found Util.toIntsRef() method takes
IntsRefBuilder as 2nd argument instead of IntsRef.

http://lucene.apache.org/core/4_10_2/core/index.html?org/apache/lucene/util/fst/Util.html

So, I changed scrachInts variable's type, from IntsRef  to
IntsRefBuilder. And it worked fine.
It seems to be there are some FST API changes at 4.10.

Am I correct? (And is this already filed?)

Regards,
Tomoko








---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to