Differences
This shows you the differences between two versions of the page.
software:rewsemvector [2010/10/31 13:46] eapontep |
software:rewsemvector [2010/11/01 14:07] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== General ==== | ||
- | ==== Installation Instruction ==== | ||
- | |||
- | ** Please read point 2.6 Before starting with these instructions. | ||
- | |||
- | ** Before installing SemanticVectors you WILL need Lucene (a library for java to search text). | ||
- | |||
- | == Install Lucene: == | ||
- | - You will need JDK and ANT: | ||
- | - [[https:// | ||
- | - [[http:// | ||
- | - You can download both from a repository: <file bash> | ||
- | sudo apt-get install ant | ||
- | sudo apt-get install ant-doc | ||
- | </ | ||
- | - You can test your installation with the the following command on your terminal: <file bash>ant -version</ | ||
- | - [[http:// | ||
- | - Untar the gz file in your desired location. | ||
- | - Go to the target directory. | ||
- | - If every thing is allright (if ant is working properly), then run ant in the current directory; it would automatically detect build.xml. <file bash>ant </ | ||
- | - You will need to set the appropiate CLASSPATH. CLASSPATH specify the location of Java libraries. To check up if the variable is declared in your system:< | ||
- | - Althought there are (supposedly) several methods to set CLASSPATH the only one which worked for me was the following: You will have to edit //bashrc// <file bash> | ||
- | - At the end of the document add: <file bash> | ||
- | - Reboot your computer. Now Lucene should be working. | ||
- | - In order to check if everything is all right you should do the following. | ||
- | - [[http:// | ||
- | - Untar the corpus in a desired location. Normally the directory will we: bible_chapters. Go to that directory and run the following command: <file bash> | ||
- | - In my case:< | ||
- | - If everything runs ok, you should be done. An index directory will be created in bible_chapters. You should be able to perform some simple test using the demo library included in lucene. | ||
- | == Install SemanticVector== | ||
- | * This is the binary installation method. You could actually built SemanticVector by downloading the appropriate file and using again ant. I don't recommend it. | ||
- | - [[http:// | ||
- | - Move this file to the desire location | ||
- | - Again open bashrc and add to CLASSPATH the desire file. In my case it looks like: <file bash> | ||
- | - Reboot your Computer. | ||
- | - By now every thing should be working. Go to the directory where you ran lucene. Run the following command: <file bash> | ||
- | - Now you are ready to use SemanticVectors. In this point I realized that there is a (probably) very serious bug. Since lucene is constantly actualized and SV depends on Lucene, there are several compatibility issues between both. In particular, a class form Lucene has been deprecated in the last version. I checked in the official community and there are not answers to this issue, although others have reported the same problem. Maybe a I get some feedback regarding this problem. Otherwise an older version of the software would be necessary. |