Skip to content

interpret_test

allennlp.common.testing.interpret_test

[SOURCE]


FakeModelForTestingInterpret

class FakeModelForTestingInterpret(Model):
 | def __init__(self, vocab, max_tokens=7, num_labels=2)

forward

class FakeModelForTestingInterpret(Model):
 | ...
 | def forward(self, tokens, label=None)

make_output_human_readable

class FakeModelForTestingInterpret(Model):
 | ...
 | def make_output_human_readable(self, output_dict)

FakePredictorForTestingInterpret

class FakePredictorForTestingInterpret(TextClassifierPredictor)

get_interpretable_layer

class FakePredictorForTestingInterpret(TextClassifierPredictor):
 | ...
 | def get_interpretable_layer(self)

get_interpretable_text_field_embedder

class FakePredictorForTestingInterpret(TextClassifierPredictor):
 | ...
 | def get_interpretable_text_field_embedder(self)