.combine_segments | R Documentation |
Combine a pair of segments
.combine_segments(..., cls_index, sep_index, pad_index, n_tokens)
... |
Two lists of tokenized segments. In the future we will support any number of lists. |
cls_index, sep_index, pad_index |
Named integer vectors for the special characters. |
n_tokens |
Integer scalar; the number of tokens expected for each example. |
A list with two components: token_ids and token_type_ids.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.