Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

LTP word splitter for AllenNLP

Project description

allennlp_wordsplitter_ltpnlp

Add a LTP WordSplitter into AllenNLP's tokenizers.

config

{
  "dataset_reader": {

    // ... ...

    "tokenizer": {
      "word_splitter": {
        "type": "ltp_remote",
        "url": "http://10.1.1.174:12345/ltp"
      }
    },

    // ... ...

  },

  // ... ...

}

CLI

allennlp train --include-package allennlp_wordsplitter_ltp -s /your/output/dir /your/training/config/file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for allennlp-wordsplitter-ltp, version 0.1a1
Filename, size File type Python version Upload date Hashes
Filename, size allennlp_wordsplitter_ltp-0.1a1-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size allennlp_wordsplitter_ltp-0.1a1.tar.gz (14.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page