ixa-ehu / ixa-pipe-tok

IXA pipes sentence segmenter and tokenizer (http://ixa2.si.ehu.es/ixa-pipes).
Apache License 2.0
11 stars 14 forks source link

Fix in Kaf Ouput #2

Closed Neuw84 closed 9 years ago

Neuw84 commented 9 years ago

Fixed bug in KafOutput.

The error seems to be related that at creation time, the wf sentece is indexed. Then altering it after creation has no effect (the indexBySent should be modified)

/* Adds a word form to the container / void add(WF wf) { text.add(wf); //nextOffset += wf.getLength() + 1; this.indexBySent(wf, wf.getSent(), this.textIndexedBySent); }

Gracias de todas formas por ofrecer tu ayuda ;)