as_fasttext(x = c("just a bit of txt", "example2", "more txt please", "more"),
y = c("pos", "neg", "neg", NA))
as_fasttext(x = c("just a bit of txt", "example2", "more txt please", "more"),
y = list(c("ok", "pos"), c("neg", "topic2"), "", NA))
Run the code above in your browser using DataLab