equipes:rcln:cluster_tal:fred

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
equipes:rcln:cluster_tal:fred [2019/04/03 12:18]
rosse [Python interface to Stanford Core NLP tools v3.4.1]
equipes:rcln:cluster_tal:fred [2020/09/23 14:36] (Version actuelle)
Ligne 492: Ligne 492:
  
 ==== Babelfly ==== ==== Babelfly ====
-I can't find any reference to entity disambiguation with Babelfly in FRED code, so I wont proceed to the installation from the [http://babelfy.org/download Babelfly download page]. Maybe it's a TODO to replace the Tagme calls (which are still inside FRED code) for Babelfly calls. +I can't find any reference to entity disambiguation with Babelfly in FRED code, so I wont proceed to the installation from the [[http://babelfy.org/download Babelfly download page]]. Maybe it's a TODO to replace the Tagme calls (which are still inside FRED code) for Babelfly calls. 
 +<code>
  $ find . -name "*.py" -exec grep -Hn agme {} \;  $ find . -name "*.py" -exec grep -Hn agme {} \;
  ./fred-corenlp/server-fred-paris.py:139:        tagmeEntities = {}  ./fred-corenlp/server-fred-paris.py:139:        tagmeEntities = {}
Ligne 510: Ligne 511:
  $ find . -name "*.py" -exec grep -Hn abelfly {} \;  $ find . -name "*.py" -exec grep -Hn abelfly {} \;
  [ ]  [ ]
 +</code>
 ===== Configuration ===== ===== Configuration =====
 First we will go to fred-corenlp directory First we will go to fred-corenlp directory
 +<code>
  $ cd /opt/FRED/fred-corenlp  $ cd /opt/FRED/fred-corenlp
 +</code>
  
-There, we will edit the ''config.py'' file to add ''candc'' path in line 5 +There, we will edit the ''config.py'' file to add //candc// path in line 5 
- CANDC_BIN_PATH = '/opt/FRED/BoxerServer/candc'+ ''CANDC_BIN_PATH = /opt/FRED/BoxerServer/candc''
  
-...and line 159 with the right ''nltk_data'' path+...and line 159 with the right //nltk_data// path
  
- NLTK_PATH = '/usr/local/share/nltk_data'   +<code> NLTK_PATH = '/usr/local/share/nltk_data' </code>
  
 Then we go back to FRED root to edit Boxer's files Then we go back to FRED root to edit Boxer's files
 +<code>
   $ cd ..   $ cd ..
   $ emacs -nw localboxerclient localboxerserver   $ emacs -nw localboxerclient localboxerserver
 +</code>
  
-In both files we set ''candc'' root:+In both files we set //candc// root: 
 +<code>
  PREFIX=/opt/FRED/BoxerServer/candc  PREFIX=/opt/FRED/BoxerServer/candc
 +</code>
  
-''localboxerserver'' should look like:+//localboxerserver// should look like: 
 +<code>
  !/bin/bash                                                                                               !/bin/bash                                                                                             
  PREFIX=/opt/FRED/BoxerServer/candc                    PREFIX=/opt/FRED/BoxerServer/candc                  
  PREFIX/bin/soapserverserverlocalhost:9000modelsPREFIX/models/boxer --candc-printer boxer --candc-int-betas "0 0 0 0 0"  PREFIX/bin/soapserverserverlocalhost:9000modelsPREFIX/models/boxer --candc-printer boxer --candc-int-betas "0 0 0 0 0"
 +</code>
 ===== Testing ===== ===== Testing =====
 We first go to FRED root We first go to FRED root
 +<code>
  $ cd /opt/FRED  $ cd /opt/FRED
 +</code>
  
 And launch the boxer server And launch the boxer server
- $ sh launchboxerserver+<code> $ sh launchboxerserver </code>
  
 We get a permission error, so we add execution attribute for both files We get a permission error, so we add execution attribute for both files
 +<code>
  $ sudo chmod a+x BoxerServer/candc/bin/soap_client   $ sudo chmod a+x BoxerServer/candc/bin/soap_client 
  $ sudo chmod a+x BoxerServer/candc/bin/soap_server  $ sudo chmod a+x BoxerServer/candc/bin/soap_server
 +</code>
  
 And we get more errors: And we get more errors:
 +<code>
  $ sh launchboxerserver  $ sh launchboxerserver
  /opt/FRED/BoxerServer/candc/bin/soap_server: 1: /opt/FRED/BoxerServer/candc/bin/soap_server: Syntax error: "(" unexpected  /opt/FRED/BoxerServer/candc/bin/soap_server: 1: /opt/FRED/BoxerServer/candc/bin/soap_server: Syntax error: "(" unexpected
Ligne 553: Ligne 566:
  /opt/FRED/BoxerServer/candc/bin/soap_client: 1: /opt/FRED/BoxerServer/candc/bin/soap_client: Syntax error: word unexpected (expecting ")")  /opt/FRED/BoxerServer/candc/bin/soap_client: 1: /opt/FRED/BoxerServer/candc/bin/soap_client: Syntax error: word unexpected (expecting ")")
  ERROR: file /tmp/boxer.ccg does not exist  ERROR: file /tmp/boxer.ccg does not exist
 +</code>
  
-''TODO'': recompile soap clients and server paying attention to parenthesis...+**TODO**: recompile soap clients and server paying attention to parenthesis...
  
  • Dernière modification: il y a 5 ans