Questions tagged [lexicon]
69 questions
1
vote
1 answer
Question about how the sentimentr lexicon dictionary was built
I have used the Sentimentr package to do some sentiment analysis because it includes valence shifters. However I cannot find how this lexicon lexicon::hash_sentiment_jockers_rinker was built, how individual words were scored. From what I understand,…

Gabriella
- 421
- 3
- 11
1
vote
1 answer
How to create a customized trade/law lexicon for r text analysis
I am planning to do text analysis in R just as sentiment analysis with an own custom dictionary following a "trade" versus "law" logic.
I have all the required words for the dictionary in an excel file. Looks like this:
> % 1 Trade 2 Law % business…

Stefan Christoph
- 43
- 6
1
vote
1 answer
How can i make a program in Prolog that recognizes the gender, plurality and case of a noun which the user inputs?
I have the following lexicon rules…

user13
- 87
- 1
- 6
1
vote
1 answer
Best lexicons for sentence vs document level analysis
What are the best lexicons for document-level and sentence-level analysis? I'm using Vader currently for sentence-level analysis, however I'm worried that when I move to the document level, Vader may not perform as well as others.
Similar question…

Laurie
- 1,189
- 1
- 12
- 28
1
vote
2 answers
Python: Giving Score for Each Word stored in a Variable after Looping
I have a case that I need to solve but I've been stuck with no solution for almost a week.
here's the case. I have three variables:
candidates = ["you", "the", "best", "love", "fun", "feeling", "emotionally"]
seeds = ["happy", "love", "enjoy",…

Indra
- 13
- 5
1
vote
3 answers
English texts lexicon comparison
Let's imagine, we can build a statistics table, how much each word is used in some English text or book. We can gather statistics for each text/book in library.
What is the simplest way to compare these statistics with each other? How can we find…
user313885
1
vote
3 answers
Word frequency tally script is too slow
Background
Created a script to count the frequency of words in a plain text file. The script performs the following steps:
Count the frequency of words from a corpus.
Retain each word in the corpus found in a dictionary.
Create a comma-separated…

Dave Jarvis
- 30,436
- 41
- 178
- 315
1
vote
1 answer
Marklogic value lexicons and word lexicons
As per the documentation:
Value lexicons are created by configuring the range indexes. Word lexicons can be created for the entire database or for specific elements or attributes.
Does this imply that range indexes are not required for creating word…

Yash
- 510
- 2
- 6
- 14
1
vote
1 answer
How lexicons work in MarkLogic?
How lexicons are different from indexes in Marklogic.
Please explain with example.

Dixit Singla
- 293
- 2
- 6
- 16
1
vote
2 answers
Sentiment Analysis using R (code not working correctly)
I am attempting to use lexicon based scoring method to do some sentiment analysis on texts.
I directly borrowed my code from http://analyzecore.com/2014/04/28/twitter-sentiment-analysis/ after reading the stack overflow post: R sentiment analysis…

alwaysaskingquestions
- 1,595
- 5
- 22
- 49
1
vote
1 answer
How to import emotion lexicon into R for data scraping of Kickstarter
I am attempting to create a model to measure emotion in text using R. Basically, using a lexicon with emotion words, i want to only extract the 'p' (paragraph) from a large number of URL's.
I am looking to find the word-count per emotion per URL,…

Rhino
- 11
- 5
1
vote
1 answer
Applied NLP: how to score a document against a lexicon of multi-word terms?
This is probably a fairly basic NLP question but I have the following task at hand: I have a collection of text documents that I need to score against an (English) lexicon of terms that could be 1-, 2-, 3- etc N-word long. N is bounded by some…

I Z
- 5,719
- 19
- 53
- 100
1
vote
0 answers
Locale::Maketext::Lexicon not loading (Windows): permission denied
I have an issue with an I18N routine that's calling Locale::Maketext::Lexicon. The routine that's being called (from CatalystX::I18N::Maketext) is below:
sub load_lexicon {
my ( $class, %params ) = @_;
my $locales = $params{locales} || [];
my…

Chris
- 83
- 4
1
vote
1 answer
SpeechSynthesizer.AddLexicon is not respecting the custom overrides
I am using speech synthesizer for converting text to speech. I wanted to use a custom lexicon file so I used the AddLexicon method as recommended on msdn
Here is my function
public void ReadOut(string sentence)
{
using…

KnightFox
- 3,132
- 4
- 20
- 35
1
vote
1 answer
How to match nested strings and not separate string
I am trying to match a regex such that
hello ?color red ?name Yuri ? ? to the forum
will output
?color red ?name Yuri ? ?
Note that the beginning of the command always comes as (? + at least one letter) and the end of command is always (? + empty…
user4780970