Calculates the mean valence of hebrew text. The function can use a small lexicon (22k tokens, default) or a large lexicon (1.4M tokens)

get_valence(text, long = FALSE)

Arguments

text

A string

long

A logical indicates which lexicon to use

Value

The valence of text

References

Armony-Sivan R, Cojocaru L, Babkoff H (2013). Affective norms for Hebrew words (E-millim): Instruction manual and affecting ratings (Hebrew). Ashkelon Academic College, Ashkelon, Israel. Joulin A, Grave E, Bojanowski P, Douze M, J攼㸹gou H, Mikolov T (2016). “Fasttext. zip: Compressing text classification models.” arXiv preprint arXiv:1612.03651. Silber-Varod V, Latin M, Moyal A (2017). “Frequency of Hebrew phonemes and phoneme clusters in a data-driven approach.” Oryanut Ve-Safa, 6, 22--36.

Examples

get_valence("some Hebrew Text", long=FALSE)
#> [1] NaN
get_valence("some Hebrew Text", long=TRUE)
#> [1] NaN