sgnlp
Quickstart
Advanced Tutorial
API Reference
models
csgec
emotion_entailment
lsr
rst_pointer
rumour_detection_twitter
sentic_gcn
config
data_class
eval
modeling
modules
postprocess
preprocess
tokenization
train
utils
span_extraction
ufd
utils
sgnlp
»
sgnlp
»
models
»
sentic_gcn
»
utils
»
BucketIterator
View page source
BucketIterator
¶
class
BucketIterator
(
data
:
List
[
Dict
[
str
,
transformers.tokenization_utils_base.BatchEncoding
]
]
,
batch_size
:
int
,
sort_key
:
str
=
'text_indices'
,
shuffle
=
True
,
sort
=
True
)
[source]
¶
Iterator class for use with non-bert version of SenticGCN.