91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5.22MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-01
  • 語言: 其他
  • 標簽: 情感分析??

資源簡介

該語料共包含中文和英文兩種語言,主要是商品評論,評論篇幅都比較短,可以被應用于篇章級或者句子級的情感分析任務。數據集被分為訓練數據、測試數據、帶標簽的測試數據三個文件,共有正向和負向兩種極性。 情感分析資源大全:http://blog.csdn.net/qq280929090/article/details/70838025

資源截圖

代碼片段和文件信息

#!?/usr/bin/env?python
#coding=utf-8
from?__future__?import?division
import?copy
import?sys

path=sys.argv[1]
reader=open(path‘rb‘)
lines_1=reader.read().split(‘\n‘)
lines=[]
for?line?in?lines_1:
????line_temp=copy.deepcopy(line)
????if?len(line_temp.strip())<>0:
???????lines.append(line)
reader.close()
output=open(r‘check.txt‘‘w‘)
right=True
if?len(lines)<>2500:
????print?‘row?count?error.‘
????
????right=False
for?iline?in?enumerate(lines):
????str_list=line.split()
????if?len(str_list)<>4:
????????print?‘column?count?error?at?row?%d‘?%i
????????exit()
????????
????????right=False
????try:
????????id=int(str_list[1])
????except:
????????print?‘2nd?column?at?row?%d?must?be?interger‘?%i
????????
????????right=False
????try:
????????sample_id=int(str_list[2])
????????if(sample_id>=2500?or?sample_id?<0):
????????????print?‘id?number?error?at?row?%d‘?%i
??????????
????????????right=False
????except:
????????print?‘3rd?column?at?row?%d?must?be?interger‘?%i
???????
????????right=False
????if?str_list[3]<>‘negative‘?and?str_list[3]<>‘positive‘:
????????print?‘4th?column?at?row?%d?must?be?positive?or?negative‘?%i
??????
????????right=False
if?right:
????print?‘check?passed...‘
??
????
????
????
????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-01-21?16:09??NLPCC2014評估任務2_基于深度學習的情感分類\
?????目錄???????????0??2018-01-21?16:06??NLPCC2014評估任務2_基于深度學習的情感分類\test\
?????文件?????????776??2014-05-23?10:54??NLPCC2014評估任務2_基于深度學習的情感分類\test\README.txt
?????文件????????1274??2014-05-23?10:51??NLPCC2014評估任務2_基于深度學習的情感分類\test\check_format.py
?????目錄???????????0??2018-01-21?16:06??NLPCC2014評估任務2_基于深度學習的情感分類\test\submission_sample\
?????目錄???????????0??2018-01-21?16:06??NLPCC2014評估任務2_基于深度學習的情感分類\test\submission_sample\TeamN_Submission\
?????文件??????????58??2014-05-21?10:48??NLPCC2014評估任務2_基于深度學習的情感分類\test\submission_sample\TeamN_Submission\TeamN_1_CN.txt
?????文件??????????58??2014-05-21?10:48??NLPCC2014評估任務2_基于深度學習的情感分類\test\submission_sample\TeamN_Submission\TeamN_1_EN.txt
?????文件??????532235??2014-05-21?10:38??NLPCC2014評估任務2_基于深度學習的情感分類\test\test.cn.txt
?????文件?????1893201??2014-05-21?10:37??NLPCC2014評估任務2_基于深度學習的情感分類\test\test.en.txt
?????目錄???????????0??2018-01-21?16:05??NLPCC2014評估任務2_基于深度學習的情感分類\test_with_label\
?????文件??????559732??2014-06-24?10:26??NLPCC2014評估任務2_基于深度學習的情感分類\test_with_label\test.label.cn.txt
?????文件?????1938680??2014-06-24?10:26??NLPCC2014評估任務2_基于深度學習的情感分類\test_with_label\test.label.en.txt
?????目錄???????????0??2014-05-06?10:29??NLPCC2014評估任務2_基于深度學習的情感分類\trian\
?????目錄???????????0??2018-01-21?16:03??NLPCC2014評估任務2_基于深度學習的情感分類\trian\cn_sample_data\
?????文件?????1078082??2014-05-06?10:29??NLPCC2014評估任務2_基于深度學習的情感分類\trian\cn_sample_data\sample.negative.txt
?????文件?????1067415??2014-05-06?10:29??NLPCC2014評估任務2_基于深度學習的情感分類\trian\cn_sample_data\sample.positive.txt
?????目錄???????????0??2018-01-21?16:03??NLPCC2014評估任務2_基于深度學習的情感分類\trian\en_sample_data\
?????文件?????4135659??2014-05-13?13:26??NLPCC2014評估任務2_基于深度學習的情感分類\trian\en_sample_data\sample.negative.txt
?????文件?????3451626??2014-05-13?13:26??NLPCC2014評估任務2_基于深度學習的情感分類\trian\en_sample_data\sample.positive.txt

評論

共有 條評論