song <- list(paste0("How many roads must a man walk down\n",
"Before you call him a man?"),
paste0("How many seas must a white dove sail\n",
"Before she sleeps in the sand?\n"),
paste0("How many times must the cannonballs fly\n",
"Before they're forever banned?\n"),
"The answer, my friend, is blowin' in the wind.",
"The answer is blowin' in the wind.")
tokenize_ptb(song)
tokenize_ptb(c("Good muffins cost $3.88\nin New York. Please buy me\ntwo of them.",
"They'll save and invest more.",
"Hi, I can't say hello."))
Run the code above in your browser using DataLab