5 RNN 0501_英文情感分析
import numpy as np import tensorflow as tf from string import punctuation from collections import Counter # 介绍预览该项目,并介绍该项目网络结构! with open('../datas/sentiment/reviews.txt', 'r') as f: reviews = f.read() with open('../datas/sentiment/labels.txt', 'r') as f: labels = f.read() print(reviews[0])
下载地址
用户评论