Input Sample for Temporal Random Indexing

7 views
Skip to first unread message

Rohit Menon

unread,
Apr 3, 2011, 7:59:24 PM4/3/11
to S-Space Package Users
Hello,

I am a masters student from SUNY, Stony brook working on a linguistics
project based on temporal random indexing under Prof. Yejin Choi.

Could a short sample of input to be used with TRI algorithm be shared.
I would be needing this to ensure that the corpus I am working with
matches the same.

The jar file throws the following exception with my input corpus

java -jar fd-tri.jar -d /media/01CB8E5AED53BD00/TRI/news.for.
20051003143626.txt -T 0,1,0,0,0 --interestingTokenList /media/
01CB8E5AED53BD00/TRI/wordstowatch -v --printInterestingTokenShifts /
media/01CB8E5AED53BD00/TRI/
Apr 3, 2011 7:45:47 PM
edu.ucla.sspace.mains.FixedDurationTemporalRandomIndexingMain run
INFO: loaded 1 interesting words
Exception in thread "Thread-3"
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.substring(String.java:1937)
at
edu.ucla.sspace.text.OneLinePerTemporalDocumentIterator.next(OneLinePerTemporalDocumentIterator.java:
80)
at
edu.ucla.sspace.text.OneLinePerTemporalDocumentIterator.next(OneLinePerTemporalDocumentIterator.java:
38)
at
edu.ucla.sspace.util.CombinedIterator.next(CombinedIterator.java:101)
at edu.ucla.sspace.mains.FixedDurationTemporalRandomIndexingMain
$2.run(FixedDurationTemporalRandomIndexingMain.java:949)
Exception in thread "Thread-4"
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.substring(String.java:1937)
at
edu.ucla.sspace.text.OneLinePerTemporalDocumentIterator.next(OneLinePerTemporalDocumentIterator.java:
80)
at
edu.ucla.sspace.text.OneLinePerTemporalDocumentIterator.next(OneLinePerTemporalDocumentIterator.java:
38)
at
edu.ucla.sspace.util.CombinedIterator.next(CombinedIterator.java:101)
at edu.ucla.sspace.mains.FixedDurationTemporalRandomIndexingMain
$2.run(FixedDurationTemporalRandomIndexingMain.java:949)
Apr 3, 2011 7:45:47 PM
edu.ucla.sspace.mains.FixedDurationTemporalRandomIndexingMain verbose
FINE: Beginning processing using 2 threads
Apr 3, 2011 7:45:47 PM
edu.ucla.sspace.mains.FixedDurationTemporalRandomIndexingMain verbose
FINE: parsed 0 document in 0.005 total seconds)

Could you help me out with this?

Thank you
Reply all
Reply to author
Forward
0 new messages