Dominic
This is the console output on running CompareTerms with two terms Sulphur and Waste, it seems it can't see the termvectors and the Docvectors.
Outputting similarity of 'Sulphur' with 'Waste':
Exception in thread "main" java.lang.RuntimeException: C:\workspace\semanticvectors-4.0\termvectors
at pitt.search.semanticvectors.VectorStoreReaderLucene$1.initialValue(VectorStoreReaderLucene.java:102)
at pitt.search.semanticvectors.VectorStoreReaderLucene$1.initialValue(VectorStoreReaderLucene.java:1)
at java.lang.ThreadLocal.setInitialValue(Unknown Source)
at java.lang.ThreadLocal.get(Unknown Source)
at pitt.search.semanticvectors.VectorStoreReaderLucene.readHeadersFromIndexInput(VectorStoreReaderLucene.java:129)
at pitt.search.semanticvectors.VectorStoreReaderLucene.<init>(VectorStoreReaderLucene.java:106)
at pitt.search.semanticvectors.CompareTerms.RunCompareTerms(CompareTerms.java:107)
at pitt.search.semanticvectors.CompareTerms.main(CompareTerms.java:89)
Caused by: java.nio.file.NoSuchFileException: C:\workspace\semanticvectors-4.0\termvectors
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Unknown Source)
at java.nio.channels.FileChannel.open(Unknown Source)
at java.nio.channels.FileChannel.open(Unknown Source)
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:196)
at pitt.search.semanticvectors.VectorStoreReaderLucene$1.initialValue(VectorStoreReaderLucene.java:100)
... 7 more
What I need to do exactly is to be able to read the document vector and the term vector so I can use it in clustering documents and terms. My question is does the SemanticVectors has classes for clustering documents and terms and visualizing the clusters based on the binary vectors produced earlier with BuildIndex
if yes please guide me to the usages of these classes.
thanks
Shaimaa