资源简介
LSTM+CRF模型项目完整代码
代码片段和文件信息
from model.config import Config
from model.data_utils import CoNLLDataset get_vocabs UNK NUM \
get_glove_vocab write_vocab load_vocab get_char_vocab \
export_trimmed_glove_vectors get_processing_word
def main():
“““Procedure to build data
You MUST RUN this procedure. It iterates over the whole dataset (train
dev and test) and extract the vocabularies in terms of words tags and
characters. Having built the vocabularies it writes them in a file. The
writing of vocabulary in a file assigns an id (the line #) to each word.
It then extract the relevant GloVe vectors and stores them in a np array
such that the i-th entry corresponds to the i-th word in the vocabulary.
Args:
config: (instance of Config) has attributes like hyper-par
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 51 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\.gitignore
文件 1920 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\build_data.py
文件 819 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\data\test.txt
文件 2141 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\evaluate.py
文件 10762 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\LICENSE.txt
文件 202 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\makefile
文件 4828 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\model\ba
文件 3321 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\model\config.py
文件 11676 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\model\data_utils.py
文件 4682 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\model\general_utils.py
文件 13429 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\model\ner_model.py
文件 0 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\model\__init__.py
文件 2654 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\README.md
文件 30 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\requirements.txt
文件 753 2017-11-09 03:14 LSTM+CRF_seq_tagging-master\train.py
目录 0 2018-08-23 21:32 LSTM+CRF_seq_tagging-master\data
目录 0 2018-08-23 21:32 LSTM+CRF_seq_tagging-master\model
目录 0 2018-08-23 21:32 LSTM+CRF_seq_tagging-master
----------- --------- ---------- ----- ----
57268 18
- 上一篇:Gobang.rar
- 下一篇:操作系统源码
评论
共有 条评论