Installation

Extract the package at the desired location:

tar -zxvf aware-knomidocumentanalyzer-*-linux-x86-64.tar.gz

It is recommended that you use the screen tool when running the Knomi Document Analyzer REST server, so the included commands will be utilizing it.

Start the Knomi Document Analyzer server:

screen -S aw_knomi_document_analyzer_server
cd knomidocumentanalyzer/aw_knomi_document_analyzer
./aw_knomi_document_analyzer_server.sh
Press CTRL A D to disconnect from the screen

At this point, the services are only accessible from the server itself. To make it available to the wider Internet, you must update the “host” parameter with the hostname for your server. For the following example, it will assume the server’s hostname is “server.com”

Edit the Knomi Document Analyzer server:

screen -r aw_knomi_document_analyzer_server
CTRL-C
CTRL-C
sed -i 's/host=.*/host=server.com/g' knomi_document_analyzer_config.txt
./aw_knomi_document_analyzer_server.sh
Press CTRL A D to disconnect from the screen

You can query the “/version” endpoint from the command line to ensure it is running correctly:

curl http://server.com:8088/documentAnalyzer/version