-
Notifications
You must be signed in to change notification settings - Fork 36
Description
I keep getting these errors.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 65 out of bounds for length 33
2023-09-26 15:54:01,635 INFO [org.aksw.palmetto.Palmetto] - <Read 2 from file.>
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 65 out of bounds for length 33
at org.apache.lucene.codecs.lucene41.ForUtil.readBlock(ForUtil.java:196)
at org.apache.lucene.codecs.lucene41.Lucene41PostingsReader$BlockDocsAndPositionsEnum.refillDocs(Lucene41PostingsReader.java:744)
at org.apache.lucene.codecs.lucene41.Lucene41PostingsReader$BlockDocsAndPositionsEnum.nextDoc(Lucene41PostingsReader.java:813)
at org.aksw.palmetto.corpus.lucene.WindowSupportingLuceneCorpusAdapter.requestDocumentsWithWord(WindowSupportingLuceneCorpusAdapter.java:125)
at org.aksw.palmetto.corpus.lucene.WindowSupportingLuceneCorpusAdapter.requestWordPositionsInDocuments(WindowSupportingLuceneCorpusAdapter.java:109)
at org.aksw.palmetto.prob.window.BooleanSlidingWindowFrequencyDeterminer.determineCounts(BooleanSlidingWindowFrequencyDeterminer.java:59)
at org.aksw.palmetto.prob.window.BooleanSlidingWindowFrequencyDeterminer.determineCounts(BooleanSlidingWindowFrequencyDeterminer.java:50)
at org.aksw.palmetto.prob.AbstractProbabilitySupplier.getProbabilities(AbstractProbabilitySupplier.java:42)
at org.aksw.palmetto.DirectConfirmationBasedCoherence.calculateCoherences(DirectConfirmationBasedCoherence.java:92)
at org.aksw.palmetto.Palmetto.main(Palmetto.java:81)
We believe this is due to the following
1. there is a problem with the topic data.
Is there a specific data word length limit for using Palmetto?
Is the ArrayIndexOutOfBoundsException being thrown because the data is long?
The data I used has the top word of the topic listed on every line, separated by a space.
The data is 10 lines of 10 words.
Example)
screen lazy rude failed post hi limit href page missed
comment bot discord moderator server subreddit friendly repetitive action performed
exam professor college banned lawyer medical student trial school hack
gold subscription trading dollar investment chance invested buy spend worth
google bard search bing engine microsoft baidu chatgpt chatbot chrome
translation translate extension paste source copy india mobile copyright content
chatgpt played mode amp guy meant knew man lt alive
fan background github epic youtube watching worse final movie water
shouldnt bad shame worried trust biased alexa scared correct hurt
fish bar absolute blue christ reminds took ya steal turned
old chat bing dance screen gpt laugh dynamic youre siri
wondering average mirror mean think journey incorrect theory technically exactly
glad thanks thank awesome helpful wonderful appreciate sharing master openaichatgpt
fucking girl ridiculous garbage mad straight hilarious crazy joke insane
tag saved notion thread figured cover assignment generic designer interview
extreme coherent convincing sentence information ability impressive long knowledge believe
detect engine embrace skill writer dark ai test art remind
song poem rap dream write style wrote lyric sleep translate
whatsapp musk billion microsoft openai dalle introduced china midjourney connected
genius smarter closer invented machine engineering singularity gate define fighting
2. Is this caused by a mismatch between the lucene version and palmetto 0.1.5?
The lucene version in the pom.xml is as follows.
4.4.0
Could this error be caused by an incorrect version?
What should I set the lucene version to?
We would appreciate your response to this issue.