is_punctuation | R Documentation |
(R implementation of _is_punctuation from BERT: tokenization.py.)
is_punctuation(char)
char |
A character scalar, comprising a single unicode character. |
We treat all non-letter/number ASCII as punctuation. Characters such as "^", "$", and "'" are not in the Unicode Punctuation class but we treat them as punctuation anyway, for consistency.
TRUE if char is a punctuation character.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.