CharLSTM:用于情感分析的双向字符LSTM-Tensorflow实现

时间:2021-05-24 08:56:45
【文件属性】:
文件名称:CharLSTM:用于情感分析的双向字符LSTM-Tensorflow实现
文件大小:48KB
文件格式:ZIP
更新时间:2021-05-24 08:56:45
natural-language-processing sentiment-analysis lstm char-level-cnn Python 用于情感分析的双向字符LSTM 要求 Python 2.7 NLTK(punkt) Tensorflow GPU / CPU版本1.1.0 (注意:此代码仅经过测试才能在此版本的Tensorflow上运行!) 设置 在CharLSTM/datasets下载CharLSTM/datasets 使用nltk.download()下载NLTK的Tokenize模块 在和模型文件中更改PATH变量 安装要求 cd CharLSTM # Create virtual environment virtualenv --python==/path/to/python2.7 venv # Activate venv source venv/bin/activate # Install requirements pip install -r requirements.txt 使用python mai
【文件预览】:
CharLSTM-master
----lib()
--------data_utils.py(6KB)
--------ops.py(3KB)
--------__init__.py(1B)
----main.py(1KB)
----requirements.txt(312B)
----lib_model()
--------bidirectional_lstm.py(15KB)
--------__init__.py(10B)
--------char_lstm.py(16KB)
----LICENSE(1KB)
----README.md(2KB)
----charlstm_diagram.png(34KB)

网友评论