Assign randomly generated properties to a single unigram.

generate_single_unigram(unigram_ranges)

Arguments

unigram_ranges

list of ranges containing respective properties. If named, names are preserved.

See also

generate_single_unigram is a helper function for generate_unigrams.

Examples

generate_single_unigram(list(P1 = c(0, 0.5), P2 = c(0.2, 0.4), P3 = c(0.5, 1), P4 = c(0, 0)))
#> P1 P2 P3 P4 #> 0.1506616 0.3687362 0.9955024 0.0000000