Learn R Programming

MoLE (version 1.0.1)

CANDIDATESCORE: Score candidate expressions

Description

Provides each candidate expression for some meaning or function with a score in which (depending on the model settings) semantic match, lexeme activation, (relative) frequency of use, recency, collostruction frequency, semantic weight, and/or economy of expression are taken into consideration.

Usage

CANDIDATESCORE(lexicon, type = "referringExpression")

Arguments

lexicon

lexicon with candidate expresions

type

Type of function for which an expression has to be found (referringExpression, nounMarker, verbMarker, or pronoun).

Value

Vector of scores, corresponding to the entries evaluated.

Details

Collostruction frequencies are determined differently for different type of functions. The lighter, the better; recency starts with 0.

See Also

SELECTVERB, SELECTACTOR, SELECTUNDERGOER, REFCHECK, TOPICCOPY, GENERALIZE, CHECKSUCCESS

Examples

Run this code
# NOT RUN {
FOUND()
lexicon=head(population[[1]]$nouns)
lexicon$match=VMATCH(lexicon[1,1:9], lexicon)
lexicon$collostruction=sample(100, nrow(lexicon))	
lexicon$score=CANDIDATESCORE(lexicon)
# }

Run the code above in your browser using DataLab