项目作者: yangdc1992

项目描述 :
deep learning based sequence labeling tools
高级语言: Python
项目地址: git://github.com/yangdc1992/deepsequence.git
创建时间: 2019-09-01T13:43:26Z
项目社区:https://github.com/yangdc1992/deepsequence

开源协议:BSD 3-Clause "New" or "Revised" License

下载


deepsequence

version number: 1.0.1
author: Decheng Yang

Overview

deep sequence labeling toolkit

Add new features:

  1. support bilstm+crf
  2. support bert
  3. support character level feature: char cnn or char lstm
  4. support pos tag feature
  5. support user defined domain dictionary (e.g. company)
  6. support “BIOLU” format for sequence evaluation
  7. easy to customize model by config file, see examples/ner_news_train.py

Installation / Usage

To install use pip:

  1. $ pip install deepsequence

Or clone the repo:

  1. $ git clone http://git.xxxx.com/deepsequence.git
  2. $ python setup.py install

Contributing

TBD

Example

train ner model for news:

see detail in /examples/ner_news_train.py:

use bilstm:
python ner_news_train.py --config bilstm_parameters.json

use bert:
python ner_news_train.py --config bert_parameters.json

TBD