Skip to main content
Språkbanken Text is a department within Språkbanken.

swe-sentiment-sparv-sensaldo

Citation Information

Språkbanken Text (2018). swe-sentiment-sparv-sensaldo (updated: 2018-03-28). [Analysis]. Språkbanken Text.

Standard reference Information

http://www.lrec-conf.org/proceedings/lrec2018/summaries/857.html

Sentiment analysis via lookup in SenSALDO

Tokens and their SALDO IDs are looked up in Sensaldo in order to enrich them with sentiments.

Example

This analysis is used with Sparv. Check out Sparv's quick start guide to get started!

To use this analysis, add the following lines under export.annotations in the Sparv corpus configuration file:

- <token>:sensaldo.sentiment_label  # SenSALDO sentiment label
- <token>:sensaldo.sentiment_score  # SenSALDO sentiment score

For more info on how to use Sparv, check out the Sparv documentation.

Example output:

<token sentiment_label="neutral" sentiment_score="0">Otroligt</token>
<token sentiment_label="negative" sentiment_score="-1">dåligt</token>
<token>!</token>
<token>Hemsidan</token>
<token sentiment_label="neutral" sentiment_score="0">är</token>
<token sentiment_label="neutral" sentiment_score="0">helt</token>
<token>fejk</token>
<token>och</token>
<token sentiment_label="neutral" sentiment_score="0">säljer</token>
<token>för</token>
<token sentiment_label="negative" sentiment_score="-1">dyra</token>
<token sentiment_label="neutral" sentiment_score="0">pengar</token>
<token>.</token>
<token>Den</token>
<token>här</token>
<token sentiment_label="neutral" sentiment_score="0">produkten</token>
<token sentiment_label="neutral" sentiment_score="0">är</token>
<token sentiment_label="positive" sentiment_score="1">jättebra</token>
<token>,</token>
<token>jag</token>
<token sentiment_label="neutral" sentiment_score="0">kan</token>
<token>verkligen</token>
<token sentiment_label="positive" sentiment_score="1">rekommendera</token>
<token>den</token>
<token></token>
<token>jag</token>
<token sentiment_label="neutral" sentiment_score="0">är</token>
<token sentiment_label="neutral" sentiment_score="0">väldigt</token>
<token sentiment_label="positive" sentiment_score="1">nöjd</token>
<token>!</token>

Other references

  • http://www.lrec-conf.org/proceedings/lrec2018/summaries/846.html

  • https://gup.ub.gu.se/publication/264721?lang=sv

Type

  • Analysis

Task

sentiment analysis

Unit

token

Tool

Sparv

Model

Created

2018-03-28

Updated

2018-03-28

Contact

Språkbanken Text
sb-info@svenska.gu.se