ComfyUI Node
NNT Dataset To Text Tensor
A ComfyUI node in NNT Neural Network Toolkit/Data Processing with 14 inputs and 4 outputs.
NNT Dataset To Text Tensor
- dataset
- text_tensor
- attention_mask
- collated_outputs
- info
◄text_columntext►
◄tokenizer_namebert-base-uncased►
◄max_length512►
◄use_data_collatorTrue►
◄paddingmax_length►
◄truncationTrue►
◄add_special_tokensTrue►
◄return_typeinput_ids►
◄pad_to_multiple_of8►
◄return_tensorspt►
◄detach_tensorTrue►
◄requires_gradTrue►
◄make_cloneTrue►
CategoryNNT Neural Network Toolkit/Data Processing
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| dataset | DATASET | — | |
| text_column | STRING | text | — |
| tokenizer_name | STRING | bert-base-uncased | — |
| max_length | INT | 5121–2048 | — |
| use_data_collator | COMBO | True | 2 options: True, False |
| padding | COMBO | max_length | 3 options: max_length, longest, do_not_pad |
| truncation | COMBO | True | 2 options: True, False |
| add_special_tokens | COMBO | True | 2 options: True, False |
| return_type | COMBO | input_ids | 4 options: input_ids, attention_mask, token_type_ids, all |
| pad_to_multiple_of | INT | 81–128 | — |
| return_tensors | COMBO | pt | 2 options: pt, tf |
| detach_tensor | COMBO | True | 2 options: True, False |
| requires_grad | COMBO | True | 2 options: True, False |
| make_clone | COMBO | True | 2 options: True, False |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| text_tensor | TENSOR | — |
| attention_mask | TENSOR | — |
| collated_outputs | DICT | — |
| info | STRING | — |