Description Usage Arguments Details Value Note Author(s) Examples
This function implements the function syl_split by providing support for vector or string input. It also has the option for multi-threading for better performance on a modern CPU.
1 2 3 4 | text_to_syl(x,
type=c("vector", "string"),
multi_core=F,
core_used=NA)
|
x |
A vector or a single string containing one or more words. |
type |
"vector" for vector input and "string" input |
multi_core |
a logical indicating whether to use multiple cores with parallel package |
core_used |
a numeric vector that specifies how many cores to use if "multi_core" is TRUE. |
This function is dependent upon the syl_split function and for better performance, the parallel package is required. In the future, the type argument may no longer be required as it will be handled by the function itself.
A nested list with the syllables of the same word in their own lists
Future support for Windows; May merge with syl_split in the future versions.
Kevin Wang
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.