opinionTokenizer.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:scrapyProject 作者: bedcode 项目源码 文件源码
def tokenize_into_opinion_units(text):
    output = []
    for str in sent_tokenize(text):
        for output_str in str.split(' but '):
            output.append(output_str)
    return output

#Take positive.csv and negative.csv and mix them into
#positiveandnegative.csv
#This has each unit tagged with its booking.com sentiment
#This is the data I tagged with Mechanical Turk
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号