layered-bilstm-crf

  • 所有者: meizhiju/layered-bilstm-crf
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Nested-NER

Nested-NER is an implementation of [A Neural Layered Model for Nested Named Entity Recognition] (http://aclweb.org/anthology/N18-1131).

Requirements

  • Ubuntu 16.04
  • chainer 3.3.0
  • python 3.5.2
  • numpy 1.14.1
  • cupy 2.4.0
  • cuda 9.1
  • cudnn 7.0

Data format

Each line has multiple columns separated by a tab key.
Each line contains

word	label1	label2	label3	...	labelN

The number of labels (N) for each word is determined by the maximum nested level in the data set. N=maximum nested level + 1
Each sentence is separated by an empty line.
For example, for these two sentences, John killed Mary's husband. He was arrested last night , they contain four entities: John (PER), Mary(PER), Mary's husband(PER),He (PER).
The format for these two sentences is listed as following:

John    B-PER   O   O
killed  O   O   O
Mary    B-PER   B-PER   O
's  O   I-PER   O
husband O   I-PER   O
.   O   O   O

He    B-PER   O   O
was  O   O   O
arrested  O   O   O
last  O   O   O
night  O   O   O
.  O   O   O

Pretrained word embeddings

Configuration

Parameters are listed in the config file which is located in the layered-bilstm-crf/src folder.
Before running the codes, please change the parameters with specific values.

Usage

Training

cd layered-bilstm-crf/src/
python3 train.py

Testing

cd layered-bilstm-crf/src
python3 test.py

Please cite our NAACL paper when using this code.

主要指標

概覽
名稱與所有者meizhiju/layered-bilstm-crf
主編程語言Python
編程語言Python (語言數: 1)
平台
許可證Other
所有者活动
創建於2018-04-11 10:04:18
推送於2018-09-22 11:26:22
最后一次提交2018-09-22 12:26:09
發布數1
最新版本名稱v1.0 (發布於 )
第一版名稱v1.0 (發布於 )
用户参与
星數100
關注者數5
派生數25
提交數3
已啟用問題?
問題數2
打開的問題數2
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?