Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

ArrayIndexOutOfBoundsException? #3

Open
GoogleCodeExporter opened this issue Nov 21, 2015 · 0 comments
Open

ArrayIndexOutOfBoundsException? #3

GoogleCodeExporter opened this issue Nov 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

java -server -mx1000m -jar berkeleyaligner.jar ++example.conf
main() {
  Execution directory: output_emille
  Preparing Training Data {
    ERROR: java.lang.ArrayIndexOutOfBoundsException: 1:
edu.berkeley.nlp.mt.Alignment.parseAlignments(Alignment.java:818)
edu.berkeley.nlp.mt.SentencePairReader$PairIterator.addAlignmentToPair(Sent
encePairReader.java:386)
edu.berkeley.nlp.mt.SentencePairReader$PairIterator.loadNext(SentencePairRe
ader.java:472)
edu.berkeley.nlp.mt.SentencePairReader$PairIterator.<init>(SentencePairRead
er.java:441)
edu.berkeley.nlp.mt.SentencePairReader$1.newInstance(SentencePairReader.jav
a:601)
edu.berkeley.nlp.mt.SentencePairReader$1.newInstance(SentencePairReader.jav
a:598)
edu.berkeley.nlp.util.Iterators$IteratorIterator.getNextIterator(Iterators.
java:202)
edu.berkeley.nlp.util.Iterators$IteratorIterator.<init>(Iterators.java:195)
edu.berkeley.nlp.mt.SentencePairReader.getSentencePairIteratorFromSource(Se
ntencePairReader.java:605)
edu.berkeley.nlp.mt.SentencePairReader$PairDepot$1.newInstance(SentencePair
Reader.java:92)
edu.berkeley.nlp.mt.SentencePairReader$PairDepot$1.newInstance(SentencePair
Reader.java:89)
edu.berkeley.nlp.util.Iterators$IteratorIterator.getNextIterator(Iterators.
java:202)
edu.berkeley.nlp.util.Iterators$IteratorIterator.<init>(Iterators.java:195)
edu.berkeley.nlp.mt.SentencePairReader$PairDepot.iterator(SentencePairReade
r.java:98)
edu.berkeley.nlp.mt.SentencePairReader$PairDepot.asList(SentencePairReader.
java:120)
edu.berkeley.nlp.mt.SentencePairReader$PairDepot.loadSentenceCache(Sentence
PairReader.java:137)
edu.berkeley.nlp.mt.SentencePairReader$PairDepot.<init>(SentencePairReader.
java:65)
edu.berkeley.nlp.mt.SentencePairReader.pairDepotFromSources(SentencePairRea
der.java:616)
edu.berkeley.nlp.wordAlignment.Data.loadData(Data.java:77)
edu.berkeley.nlp.wordAlignment.Main.run(Main.java:101)
fig.exec.Execution.runWithObjArray(Execution.java:466)
fig.exec.Execution.run(Execution.java:419)
edu.berkeley.nlp.wordAlignment.Main.main(Main.java:95)
    Execution directory: output_emille
1 errors, 0 warnings
  }


Note:
I wrote a script in python to format the EMILLE corpus into the 
example/train and example/test style for it to match the <s 
snum=3>asdasd</s> style.

Running the unsupervised latest version on fedora 10

Original issue reported on code.google.com by eknath.i...@gmail.com on 21 Jan 2010 at 5:15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant