【问题标题】:Internal structure of SentiWordNet 3SentiWordNet 3 的内部结构
【发布时间】:2017-03-05 08:06:52
【问题描述】:

我正在做一个使用SentiwordNet3 词典的情绪分析项目。问题是,我无法理解词典的结构。这个词典的一行是:

a 00002730 0 0 acroscopic#1 朝向或朝向顶点的一侧

1. a=? a的目的?

2. POS-ID=00002730POS-ID的目的是什么?

3. SynsetTerms Gloss = acroscopic#1 facing or on the side toward the apex

  1. acroscopic 是什么?我们要得分的是单词吗?
  2. 什么是#1?目的?
  3. 为什么#1后面有句? facing or on the side toward the apex

对于score的访问,我们访问为

`list(SWN.senti_synsets(Tagged[i][0],'a')`

aAdjective,而 vrn 也在词典中。

【问题讨论】:

    标签: nlp sentiment-analysis wordnet senti-wordnet


    【解决方案1】:

    语料库有一个包含列定义的标题:

    POS ID PosScore NegScore SynsetTerms Gloss

    1. POS 'a' 是词性(形容词)
    2. ID 是 Wordnet 中引理的唯一标识符
    3. PosScore => 正分数
    4. NegScore => 负分
    5. SynsetTerms => Wordnet 同义词集名称(#1 = 第一义,#2 = 第二义)
    6. 解释句

    【讨论】:

    • 那么,如果我们给list(SWN.senti_synsets(Tagged[i][0],'a') 会返回哪个感觉?如何判断意义?
    • 好吧,它会恢复所有感官。它将返回一个包含引理列表的同义词列表。这是一个例子:nltk.org/howto/sentiwordnet.html WN 和 SWN 之间的映射是如何完成的:github.com/bogdan-ivanov/wnext/blob/master/sentiwordnet.py
    • 这个from nltk.corpus import sentiwordnet as swn happy = swn.senti_synsets('happy', 'a') for i in happy: print(i) 返回<happy.a.01: PosScore=0.875 NegScore=0.0> <felicitous.s.02: PosScore=0.75 NegScore=0.0> <glad.s.02: PosScore=0.5 NegScore=0.0> <happy.s.04: PosScore=0.125 NegScore=0.0> sglad.s.02 中是什么,为什么02 在这里?
    • Explanatory sentence 是什么意思?
    • 一句话说明意义
    猜你喜欢
    • 2012-12-12
    • 1970-01-01
    • 2019-01-08
    • 1970-01-01
    • 1970-01-01
    • 2018-09-11
    • 1970-01-01
    • 2011-09-06
    • 1970-01-01
    相关资源
    最近更新 更多