Can't find random-indexing.jar
This page in Wiki says random-indexing.jar is in downloads, but I can't find it. I also tried to clone the repo and run maven compile and maven package, but got the following errors on test:
Failed tests: testNoConfig(edu.ucla.sspace.text.IteratorFactoryTests): expected:<example[]> but was:<example[ sentence]>
Tests in error:
testIterator(edu.ucla.sspace.matrix.ClutoSparseFileIteratorTests): For input string: "1,500000"
testRemove(edu.ucla.sspace.matrix.ClutoSparseFileIteratorTests): Unexpected exception, expected<java.lang.UnsupportedOperationException> but was<java.lang.NumberFormatException>
testEmptyNext(edu.ucla.sspace.matrix.ClutoSparseFileIteratorTests): Unexpected exception, expected<java.util.NoSuchElementException> but was<java.lang.NumberFormatException>
testIterator(edu.ucla.sspace.matrix.DenseTextFileIteratorTests): For input string: "1,500000"
testRemove(edu.ucla.sspace.matrix.DenseTextFileIteratorTests): Unexpected exception, expected<java.lang.UnsupportedOperationException> but was<java.lang.NumberFormatException>
testEmptyNext(edu.ucla.sspace.matrix.DenseTextFileIteratorTests): Unexpected exception, expected<java.util.NoSuchElementException> but was<java.lang.NumberFormatException>
testMatrixReduction(edu.ucla.sspace.matrix.factorization.SingularValueDecompositionMatlabTest): dimensions must be positive
testIterator(edu.ucla.sspace.matrix.MatlabSparseFileIteratorTests): For input string: "2,300000"
testRemove(edu.ucla.sspace.matrix.MatlabSparseFileIteratorTests): Unexpected exception, expected<java.lang.UnsupportedOperationException> but was<java.lang.NumberFormatException>
testEmptyNext(edu.ucla.sspace.matrix.MatlabSparseFileIteratorTests): Unexpected exception, expected<java.util.NoSuchElementException> but was<java.lang.NumberFormatException>
testTransform(edu.ucla.sspace.matrix.MatlabSparseFileTransformerTest): For input string: "2,000000"
testIterator(edu.ucla.sspace.matrix.SvdlibcDenseTextFileIteratorTests): For input string: "1,500000"
testRemove(edu.ucla.sspace.matrix.SvdlibcDenseTextFileIteratorTests): Unexpected exception, expected<java.lang.UnsupportedOperationException> but was<java.lang.NumberFormatException>
testEmptyNext(edu.ucla.sspace.matrix.SvdlibcDenseTextFileIteratorTests): Unexpected exception, expected<java.util.NoSuchElementException> but was<java.lang.NumberFormatException>
testIterator(edu.ucla.sspace.matrix.SvdlibcSparseTextFileIteratorTests): For input string: "1,500000"
testRemove(edu.ucla.sspace.matrix.SvdlibcSparseTextFileIteratorTests): Unexpected exception, expected<java.lang.UnsupportedOperationException> but was<java.lang.NumberFormatException>
testEmptyNext(edu.ucla.sspace.matrix.SvdlibcSparseTextFileIteratorTests): Unexpected exception, expected<java.util.NoSuchElementException> but was<java.lang.NumberFormatException>
testTransform(edu.ucla.sspace.matrix.SvdlibcSparseTextFileTransformerTest): For input string: "2,000000"
testExcludeFromConfig(edu.ucla.sspace.text.FilteredIteratorTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testIncludeFromConfig(edu.ucla.sspace.text.FilteredIteratorTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testWithCompoundsAndFilter(edu.ucla.sspace.text.IteratorFactoryTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testWithFilter(edu.ucla.sspace.text.IteratorFactoryTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testLayeredIncludeFirst(edu.ucla.sspace.text.TokenFilterTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testLayeredExcludeFirst(edu.ucla.sspace.text.TokenFilterTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testMultipleInclude(edu.ucla.sspace.text.TokenFilterTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testExcludeFromConfig(edu.ucla.sspace.text.TokenFilterTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
testIncludeFromConfig(edu.ucla.sspace.text.TokenFilterTests): java.io.FileNotFoundException: C (O sistema não pode encontrar o arquivo especificado)
Tests run: 1339, Failures: 1, Errors: 27, Skipped: 6
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
I had problems running mvn package, because of problems in docstrings (Java 8 has doclint enabled by default). I disabled doclint then mvn package worked, but didn't created random-indexing.jar. I see pom.xml doesn't have have random-indexing.jar creation setting, only build.xml, which is not mentioned in pom.xml. I tried to ran ant in the root repo dir, but it complains there is not lib folder.
I could create the models with this command line:
java -server -Xmx6g -cp sspace-2.0.4-jar-with-dependencies.jar edu.ucla.sspace.mains.RandomIndexingMain --docFile=wikipedia_lemma_lc_nosw.txt --tokenFilter=include=dict-mf100-lemma.txt -o sparse_text --verbose --threads 3 C:/ri
sspace-2.0.4-jar-with-dependencies.jar was created with mvn compile; mvn package -Dmaven.test.skip=true, also skipping test errors and disabling doclint (enabled by default in newer version of Java).
I suggest the jar packages are distributed along with the source codes, so people won't have these issues (test problems, doclint errors).
Hi Guilherme,
Thanks for spotting this! Yes, the documentation is a bit out of date. We hadn't distributed the jar packages since people need to compile for different versions of Java. I will see if I can clean up the javadoc or just disable the doclint in the maven build to make people's lives easier. :)
Thanks, David
On Sat, Apr 8, 2017 at 6:52 AM, Guilherme Passero [email protected] wrote:
I could create the models with this command line:
java -server -Xmx6g -cp sspace-2.0.4-jar-with-dependencies.jar edu.ucla.sspace.mains.RandomIndexingMain --docFile=wikipedia_lemma_lc_nosw.txt --tokenFilter=include=dict-mf100-lemma.txt -o sparse_text --verbose --threads 3 C:/ri
sspace-2.0.4-jar-with-dependencies.jar was created with mvn compile; mvn package -Dmaven.test.skip=true, also skipping test errors and disabling doclint (enabled by default in newer version of Java).
I suggest the jar packages are distributed along with the source codes, so people won't have these issues (test problems, doclint errors).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fozziethebeat/S-Space/issues/78#issuecomment-292719488, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7uLVDGazCDaZGuIGyEpxJG1OJG3O3Hks5rt5EqgaJpZM4M0QHN .