generate_single_unigram {biogram}R Documentation

Generate single unigram

Description

Assign randomly generated properties to a single unigram.

Usage

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)))


[Package biogram version 1.6.3 Index]