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

  • 大小: 1.85MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-21
  • 語(yǔ)言: 其他
  • 標(biāo)簽: COAE??

資源簡(jiǎn)介

COAE2015數(shù)據(jù)集,用做簡(jiǎn)單的機(jī)器學(xué)習(xí)情感分析的訓(xùn)練集很不錯(cuò)

資源截圖

代碼片段和文件信息

import?pandas?as?pd

corpus?=?pd.Dataframe(pd.read_csv(‘./data/FinalAll.csv‘))
labels?=?corpus[‘8Label‘]
text?=?corpus[‘7Text‘]
print(text[1])
negfile?=?open(‘negfile.txt‘?‘w‘?encoding?=?‘utf-8‘)
posfile?=?open(‘posfile.txt‘?‘w‘?encoding?=?‘utf-8‘)
objfile?=?open(‘objfile.txt‘?‘w‘?encoding?=?‘utf-8‘)
for?i?in?range(len(text)):
??if?labels[i]?==?0:
????objfile.write(‘{}‘.format(text[i]))
????objfile.write(‘\n‘)
??if?labels[i]?==?-1:
????negfile.write(‘{}‘.format(text[i]))
????negfile.write(‘\n‘)
??else?:
????posfile.write(‘{}‘.format(text[i]))
????posfile.write(‘\n‘)
objfile.close()
negfile.close()
posfile.close()

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-05-14?21:04??coae2015-master\
?????文件??????????20??2016-02-03?16:26??coae2015-master\README.md
?????目錄???????????0??2018-05-11?22:53??coae2015-master\data\
?????文件??????613776??2016-02-03?16:26??coae2015-master\data\FinalAll.csv
?????文件?????1895330??2016-02-03?16:26??coae2015-master\data\FinalAllConcatSeg.csv
?????文件??????635115??2016-02-03?16:26??coae2015-master\data\FinalAllSeg.csv
?????文件?????1600176??2016-02-03?16:26??coae2015-master\data\OriginalTest.csv
?????文件??????406924??2016-02-03?16:26??coae2015-master\data\OriginalTrain.csv
?????文件??????108105??2018-05-14?15:12??coae2015-master\negfile.txt
?????文件???????????0??2018-05-14?21:03??coae2015-master\objfile.txt
?????文件??????317545??2018-05-14?15:12??coae2015-master\posfile.txt
?????文件?????????647??2018-05-14?15:12??coae2015-master\readcsv.py

評(píng)論

共有 條評(píng)論