Skip to content

tanbro/allennlp_wordsplitter_ltp

Repository files navigation

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

About

Add a LTP WordSplitter into AllenNLP's tokenizers

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages