如何在Quanteda中获得文档的情感评分?

问题描述 投票:1回答:1

我是情绪分析的新手。 Quanteda examples显示如何输出正数和负数。我测试了一些文件。输出如下:

案例1

document    negative    positive
file1   28  28
file2   98  71
file3   28  22
file4   37  39
file5   7   36

或以下

案例2

document    negative    positive    neg_positive    neg_negative
file1   28  28  0   1
file2   98  71  0   0
file3   28  22  1   0
file4   37  39  0   1
file5   7   36  0   1

在两种情况下,您能否让我知道如何对file1 .. file5进行评分?是

((#positive-#negative)/ #all in case 1 file2,(71-98)/(71 + 98)=-27/169 =-0.15?

案例2呢?

非常感谢。

A

我是情绪分析的新手。 Quanteda示例显示了如何输出正数和负数的单词。我测试了一些文件。输出如下:案例1文档否定肯定文件1 ...

sentiment-analysis quanteda
1个回答
1
投票

如果您将neg_positive视为negative,并且将neg_negative视为正,则可以通过合并列对来创建索引。这是合理的,因为“负阳性”例如包含诸如“不好”的序列。

© www.soinside.com 2019 - 2024. All rights reserved.