How do I run SAPIENTA or SAPIENT as a standalone process?

Posted on 11 November 2010 13:51

If you have Firefox (3 or later) installed and java 1.6 or later, you can run SAPIENTA [SAPIENT only runs with Firefox 3 at the moment]. Open a command prompt and navigate to the “sapienta” directory you have just created (see Q17).

Type: “java -Xmx512m -jar sapienta.jar Server” The first time you run this, it will ask you about whether you want to configure a server. Answer ‘yes’. It will then ask you if you want a full web server, answer ‘full’. It will then ask you if you would like to specify a working directory. Just press enter. Finally, it will ask if you want to lock the server down so that it can only be accessed from the machine it is running on. Answer ‘yes’.

If the Server setup is successful, you should see a 4-line message appearing at the command prompt, one of which should be: Server ready – go to http://127.0.0.1:8181/.

In Firefox, navigate to the URL: http://localhost:8181. You should be able to see the SAPIENT Index now!

NOTE: The first time you run sapient.jar as described above, it will create new folders in your sapient directory. Put any files for annotation in the “corpora” folder. Annotations will be stored automatically in the “scrapbook” folder.

Comments (0)