3 ms·
I just tried to get anonymouth working, but unfortunately even after fixing the invalid code issues/errors preventing compilation, it crashes after you fill out
by jaytaylor 10y ago
I just tried to get anonymouth working, but unfortunately even after fixing the invalid code issues/errors preventing compilation, it crashes after you fill out about 6 screens worth questions about where various types of text content is located:
>>>>>>>>>>>>>>>>>>>>>>> LOGGING STACK TRACE <<<<<<<<<<<<<<<<<<<<<<<<<
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.util.ArrayList.rangeCheck(Unknown Source)
java.util.ArrayList.get(Unknown Source)
edu.drexel.psal.anonymouth.utils.FunctionWords.run(FunctionWords.java:60)
edu.drexel.psal.anonymouth.engine.DocumentProcessor.processDocuments(DocumentProcessor.java:140)
edu.drexel.psal.anonymouth.engine.DocumentProcessor.access$000(DocumentProcessor.java:39)
edu.drexel.psal.anonymouth.engine.DocumentProcessor$1.doInBackground(DocumentProcessor.java:70)
edu.drexel.psal.anonymouth.engine.DocumentProcessor$1.doInBackground(DocumentProcessor.java:67)
javax.swing.SwingWorker$1.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
javax.swing.SwingWorker.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
( ErrorHandler ) - Fatal error encountered, will exit now...
It's too bad the flow isn't more along the lines of "Give me some docs from one author, and the other document you want to test. Okay! Here is your result!"
- sparkie 10y agoFrom this trace it looks like the file jsan_resources/koppel_function_words.txt is missing/empty/invalid.
- deleted 10y ago[deleted]
- jaytaylor 10y agoThanks for the info, that file appears to be a clean and intact list of english words, except it is under the path: anonymouth/src/edu/drexel/psal/resources/koppel_function_words.txt And down the rabbithole we go; after copying the file to src/jsan_resources we now get a new error: >>>>>>>>>>>>>>>>>>>>>>> LOGGING STACK TRACE <<<<<<<<<<<<<<<<<<<<<<<<< java.lang.NullPointerException edu.drexel.psal.anonymouth.engine.InstanceConstructor.getAttributes(InstanceConstructor.java:182) edu.drexel.psal.anonymouth.engine.InstanceConstructor.runInstanceBuilder(InstanceConstructor.java:121) ... >>>>>>>>>>>>>>>>>>>>>>> LOGGING STACK TRACE <<<<<<<<<<<<<<<<<<<<<<<<< java.lang.NullPointerException edu.drexel.psal.anonymouth.utils.TaggedDocument.makeAndTagSentences(TaggedDocument.java:380) edu.drexel.psal.anonymouth.engine.DocumentProcessor.processDocuments(DocumentProcessor.java:184) ... :)