Skip to content

Latest commit

 

History

History
83 lines (61 loc) · 2.39 KB

reference.md

File metadata and controls

83 lines (61 loc) · 2.39 KB

Reference

Command Line Interface

cat some_kind_of_kaf_file.kaf | coreference

This will output:

<coref coid="co5">
  <!--Her father-->
  <span>
    <target id="t45"/>
    <target id="t46"/>
  </span>
  <!--him-->
  <span>
    <target id="t58"/>
  </span>
  <!--his-->
  <span>
    <target id="t54"/>
  </span>
</coref>

Webservice

You can launch a webservice by executing:

coreference-server

After launching the server, you can reach the webservice at http://localhost:9292.

The webservice takes several options that get passed along to Puma, the webserver used by the component. The options are:

-h, --help                Shows this help message
    --puma-help           Shows the options of Puma
-b, --bucket              The S3 bucket to store output in
    --authentication      An authentication endpoint to use
    --secret              Parameter name for the authentication secret
    --token               Parameter name for the authentication token
    --disable-syslog      Disables Syslog logging (enabled by default

Daemon

The daemon has the default OpeNER daemon options. Being:

-h, --help                Shows this help message
-i, --input               The name of the input queue (default: opener-coreference)
-b, --bucket              The S3 bucket to store output in (default: opener-coreference)
-P, --pidfile             Path to the PID file (default: /var/run/opener/opener-coreference-daemon.pid)
-t, --threads             The amount of threads to use (default: 10)
-w, --wait                The amount of seconds to wait for the daemon to start (default: 3)
    --disable-syslog      Disables Syslog logging (enabled by default)

When calling ner without "start", "stop" or "restart" the daemon will start as a foreground process.

Environment Variables

These daemons make use of Amazon SQS queues and other Amazon services. For these services to work correctly you'll need to have various environment variables set. These are as following:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION

For example:

AWS_REGION='eu-west-1' language-identifier start [other options]

Languages

The Coreference component supports the following languages:

  • Dutch (nl)
  • English (en)
  • French (fr)
  • German (de)
  • Italian (it)
  • Spanish (es)