Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find random-indexing.jar #78

Open
gpassero opened this issue Apr 5, 2017 · 3 comments
Open

Can't find random-indexing.jar #78

gpassero opened this issue Apr 5, 2017 · 3 comments

Comments

@gpassero
Copy link

gpassero commented Apr 5, 2017

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
@gpassero
Copy link
Author

gpassero commented Apr 5, 2017

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.

@gpassero
Copy link
Author

gpassero commented Apr 8, 2017

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).

@davidjurgens
Copy link
Collaborator

davidjurgens commented Apr 8, 2017 via email

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

No branches or pull requests

2 participants