kiwi.data.batch
BatchedSentence
MultiFieldBatch
dict() -> new empty dictionary
tensors_to(tensors, *args, **kwargs)
tensors_to
kiwi.data.batch.
tensor
lengths
bounds
bounds_lengths
strict_masks
number_of_tokens
pin_memory
to
Bases: dict
dict
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
d = {} for k, v in iterable:
d[k] = v
in the keyword argument list. For example: dict(one=1, two=2)
kiwi.data.encoders.wmt_qe_data_encoder
kiwi.data.tokenizers