Scoring text against a semantic dictionary
Hi
I am attempting to run a process where I score text against a semantic dictionary (I have attached an example), I am pulling the word count out as well as loading the dictionary and then getting myself in a complete knot as to the calculation of the result.
The process should be as follows:
- Load the text
- Select the text
- Load the dictionary
- Perform a word frequency count
- Multiply the word frequency by the dictionary result and divide by the total word count
Semantic dictionaries are different to sentiment dicitonaries as they calculate the volume of word types being used in the text. Also in a semantic dictionary a word can belong to multiple segments and is not only either positive or negative.
I have also attached the process as far as I have managed to get so far.