Sentimentanalys via uppslag i SenSALDO-lexikonet
Token berikas med sentiment-värden genom uppslag av deras SALDO-ID:n i Sensaldo.
Token berikas med sentiment-värden genom uppslag av deras SALDO-ID:n i Sensaldo.
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>då</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>
http://www.lrec-conf.org/proceedings/lrec2018/summaries/846.html
https://gup.ub.gu.se/publication/264721?lang=sv