LMLearner_predict: LMLearner_predict

View source: R/text_learner.R

LMLearner_predictR Documentation

LMLearner_predict

Description

Return 'text' and the 'n_words' that come after

Usage

LMLearner_predict(
  text,
  n_words = 1,
  no_unk = TRUE,
  temperature = 1,
  min_p = NULL,
  no_bar = FALSE,
  decoder = decode_spec_tokens(),
  only_last_word = FALSE
)

Arguments

text

text

n_words

n_words

no_unk

no_unk

temperature

temperature

min_p

min_p

no_bar

no_bar

decoder

decoder

only_last_word

only_last_word

Value

None


fastai documentation built on March 21, 2022, 9:07 a.m.