lookupserver
Lookup server
The lookup-process for the analyzer ped-sme.fst, used in Vasta
The script lookupserv calls the Python program lookupserv.py in the sme/bin catalogue in opt.
NB: Any update of the FST requires a restart of the lookup server!
-
(re-)startingthe server (gtlab, gtoahpa):
- go to the src folder in the ped folder of the running oapha production folder (you will find the lookupserv document there)
- type the command
- go to the src folder in the ped folder of the running oapha production folder (you will find the lookupserv document there)
sudo service lookupserv restart
-
testing the server using the commad-line tool, that takes one word at a time (OAHPA a variable for oahpa version):
- go to /home/OAHPA/ped/src
- type the command sudo python client.py
- go to /home/OAHPA/ped/src
-
checking the log file for the lookup output from Sahka and Vasta on victorio:
- inspect the file /var/log/lserv.log with you editor of choice
-
Making changes to lookupserv.py:
- edit the file locally in ped/src
- copy the updated file into the folder under /opt/smi that is specified in the script file lookupserv (requires sudo rights)
- restart the lookup server as described above
- edit the file locally in ped/src