當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


R dials token 代幣類型

代幣類型

用法

token(values = values_token)

values_token

格式

長度為 12 的 character 類對象。

參數

values

可能值的字符串。請參閱下麵示例中的values_token

細節

該參數用在 textrecipes::step_tokenize() 中。

例子

values_token
#>  [1] "words"             "characters"        "character_shingle"
#>  [4] "lines"             "ngrams"            "paragraphs"       
#>  [7] "ptb"               "regex"             "sentences"        
#> [10] "skip_ngrams"       "tweets"            "word_stems"       
token()
#> Token Unit  (qualitative)
#> 12 possible values include:
#> 'words', 'characters', 'character_shingle', 'lines', 'ngrams', 'paragra... 
源代碼:R/param_token.R

相關用法


注:本文由純淨天空篩選整理自Max Kuhn等大神的英文原創作品 Token types。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。