Learn R Programming

flashlighttext (version 0.1.0)

ZeroLM: ZeroLM

Description

ZeroLM is a dummy language model class, which mimics the behaviour of a uni-gram language model but always returns 0 as score.

Arguments

Super class

flashlighttext::LM -> ZeroLM

Methods

Public methods

Inherited methods


Method new()

Usage

ZeroLM$new()

Returns

ZeroLM


Method clone()

The objects of this class are cloneable with this method.

Usage

ZeroLM$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.