EncoderPairwiseModelInputΒΆ

class pytext.models.bert_classification_models.EncoderPairwiseModelInput

Bases: ModelInputBase

All Attributes (including base classes)

tokens1: Tensorizer.Config = Tensorizer.Config()
tokens2: Tensorizer.Config = Tensorizer.Config()
labels: LabelTensorizer.Config = LabelTensorizer.Config()
num_tokens: NtokensTensorizer.Config = NtokensTensorizer.Config(names=['tokens1', 'tokens2'], indexes=[2, 2])

Default JSON

{
    "tokens1": {
        "Tensorizer": {
            "is_input": true
        }
    },
    "tokens2": {
        "Tensorizer": {
            "is_input": true
        }
    },
    "labels": {
        "LabelTensorizer": {
            "is_input": false,
            "column": "label",
            "allow_unknown": false,
            "pad_in_vocab": false,
            "label_vocab": null,
            "label_vocab_file": null,
            "add_labels": null
        }
    },
    "num_tokens": {
        "is_input": false,
        "names": [
            "tokens1",
            "tokens2"
        ],
        "indexes": [
            2,
            2
        ]
    }
}