文件名称:5-RNN-0501_英文情感分析
文件大小:71KB
文件格式:PDF
更新时间:2024-02-10 05:18:23
lstm rnn test
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])