e8aba3fe479293388b722ff1da46baea7bb49466,allennlp/models/simple_tagger.py,SimpleTagger,from_params,#Any#Any#Any#,147

Before Change


        stacked_encoder = Seq2SeqEncoder.from_params(params.pop("stacked_encoder"))

        init_params = params.pop("initializer", None)
        reg_params = params.pop("regularizer", None)
        initializer = (InitializerApplicator.from_params(init_params)
                       if init_params is not None
                       else InitializerApplicator())
        regularizer = RegularizerApplicator.from_params(reg_params) if reg_params is not None else None

        return cls(vocab=vocab,
                   text_field_embedder=text_field_embedder,
                   stacked_encoder=stacked_encoder,

After Change


        stacked_encoder = Seq2SeqEncoder.from_params(params.pop("stacked_encoder"))

        initializer = InitializerApplicator.from_params(params.pop("initializer", []))
        regularizer = RegularizerApplicator.from_params(params.pop("regularizer", []))

        return cls(vocab=vocab,
                   text_field_embedder=text_field_embedder,
                   stacked_encoder=stacked_encoder,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: allenai/allennlp
Commit Name: e8aba3fe479293388b722ff1da46baea7bb49466
Time: 2017-10-23
Author: joelgrus@gmail.com
File Name: allennlp/models/simple_tagger.py
Class Name: SimpleTagger
Method Name: from_params


Project Name: allenai/allennlp
Commit Name: e8aba3fe479293388b722ff1da46baea7bb49466
Time: 2017-10-23
Author: joelgrus@gmail.com
File Name: allennlp/models/reading_comprehension/bidaf.py
Class Name: BidirectionalAttentionFlow
Method Name: from_params


Project Name: allenai/allennlp
Commit Name: e8aba3fe479293388b722ff1da46baea7bb49466
Time: 2017-10-23
Author: joelgrus@gmail.com
File Name: allennlp/models/semantic_role_labeler.py
Class Name: SemanticRoleLabeler
Method Name: from_params


Project Name: allenai/allennlp
Commit Name: e8aba3fe479293388b722ff1da46baea7bb49466
Time: 2017-10-23
Author: joelgrus@gmail.com
File Name: allennlp/models/decomposable_attention.py
Class Name: DecomposableAttention
Method Name: from_params