TextDataLoaders_from_df: TextDataLoaders_from_df

Description Usage Arguments Value

View source: R/text_data.R

Description

Create from 'df' in 'path' with 'valid_pct' '

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
TextDataLoaders_from_df(
  df,
  path = ".",
  valid_pct = 0.2,
  seed = NULL,
  text_col = 0,
  label_col = 1,
  label_delim = NULL,
  y_block = NULL,
  text_vocab = NULL,
  is_lm = FALSE,
  valid_col = NULL,
  tok_tfm = NULL,
  seq_len = 72,
  backwards = FALSE,
  bs = 64,
  val_bs = NULL,
  shuffle_train = TRUE,
  device = NULL
)

Arguments

df

df

path

path

valid_pct

validation percentage

seed

seed

text_col

text_col

label_col

label_col

label_delim

label_delim

y_block

y_block

text_vocab

text_vocab

is_lm

is_lm

valid_col

valid_col

tok_tfm

tok_tfm

seq_len

seq_len

backwards

backwards

bs

batch size

val_bs

validation batch size, if not specified then val_bs is the same as bs.

shuffle_train

shuffle_train

device

device

Value

text loader


fastai documentation built on Oct. 25, 2021, 5:08 p.m.