/
Treex GATE Plugin

Treex GATE Plugin

Treex Local Analyser

Works the same as remote. Desktop = Server. The client part starts the server part on startup.

Treex Remote Analyser

Make it Run

  1. A server with Treex and Czsem-Treex-Resouces has to be ready.
    1. Czsem-Treex-Resouces can be obtained:
      1. using czsem installer or install zip archive (see install instructions) or
      2. directly from czsem GIT repository, dir: src/czsem/resources/Treex (see it no the web)
    2. Additional Perl modules may need to be installed for treex-gate-plugin using "resources/Treex/install.cmd" .
    3. Some server port has to be free, open and reachable from the desktop
  2. GATE and Czsem with treex-gate-plugin has to be installed on your desktop.
    1. For Treex Remote Analyser, it is not necessary to install additional items: "Select Treex location" and "Additional Perl modules" on the desktop.
  3. Start Treex Server
    1. using resources/Treex/run_treex_server.sh <port>
    2. or just:
      cd resources/Treex
      perl treex_online.pl <port>
      ... see the details inside the run_treex_server.sh script
    3. It should type several URLs - how the server can be reached, e.g.:
      http://localhost:9090

      http://treex-server:9090

      http://123.123.123.123:9090


  4. Connect form GATE desktop
    1. Run GATE
    2. Load treex-gate-plugin (in CREOLE plugin manager)
    3. Create new Processing Resource "czsem Treex Remote Analyser"
    4. Set treexServerUrl to the most suitable value printed by treex server (point 3c)
    5. Configure as described below...

Configuration

Parameters

  • scenarioSetup

List of either Treex block names or scenario files. Paths are relative from Treex server working directory.

Examples

Czech full analysis:

W2A::CS::Segment
devel/analysis/cs/s_w2t.scen

Czech analytical analysis:

W2A::CS::Segment
W2A::CS::Tokenize
devel/cs2cs/scenarios/cs_analysis_w2a.scen

Czech morphology:

W2A::CS::Segment
W2A::CS::Tokenize
W2A::CS::TagFeaturama lemmatize=1
W2A::CS::FixMorphoErrors