TextDataLoaders_from_csv: TextDataLoaders_from_csv

Description Usage Arguments Value

View source: R/text_data.R

Description

Create from 'csv' file in 'path/csv_fname'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
TextDataLoaders_from_csv(
  path,
  csv_fname = "labels.csv",
  header = "infer",
  delimiter = NULL,
  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

path

path

csv_fname

csv file name

header

header

delimiter

delimiter

valid_pct

valid_ation percentage

seed

random seed

text_col

text column

label_col

label column

label_delim

label separator

y_block

y_block

text_vocab

text vocabulary

is_lm

is_lm

valid_col

valid column

tok_tfm

tok_tfm

seq_len

seq_len

backwards

backwards

bs

batch size

val_bs

validation batch size

shuffle_train

shuffle train data

device

device

Value

text loader


fastai documentation built on July 28, 2021, 5:06 p.m.