a8f7adae8546cfac4473bd514b0070367d725f2e,allennlp/models/semantic_parsing/nlvr/nlvr_semantic_parser.py,NlvrSemanticParser,__init__,#NlvrSemanticParser#Any#Any#Any#Any#Any#,46

Before Change


        self._encoder = encoder
        self._rule_namespace = rule_namespace

        self._action_embedder = Embedding(num_embeddings=vocab.get_vocab_size(self._rule_namespace),
                                          embedding_dim=action_embedding_dim)

        // This is what we pass as input in the first step of decoding, when we don"t have a
        // previous action.
        self._first_action_embedding = torch.nn.Parameter(torch.FloatTensor(action_embedding_dim))

After Change


                 action_embedding_dim: int,
                 encoder: Seq2SeqEncoder,
                 dropout: float = 0.0,
                 rule_namespace: str = "rule_labels") -> None:
        super(NlvrSemanticParser, self).__init__(vocab=vocab)

        self._sentence_embedder = sentence_embedder
        self._denotation_accuracy = Average()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: allenai/allennlp
Commit Name: a8f7adae8546cfac4473bd514b0070367d725f2e
Time: 2018-05-13
Author: pradeep.dasigi@gmail.com
File Name: allennlp/models/semantic_parsing/nlvr/nlvr_semantic_parser.py
Class Name: NlvrSemanticParser
Method Name: __init__


Project Name: dmlc/dgl
Commit Name: 9a0511c8e91a7f633c9c3292fccbcbad5281d1f5
Time: 2019-11-03
Author: expye@outlook.com
File Name: python/dgl/nn/pytorch/conv/gatedgraphconv.py
Class Name: GatedGraphConv
Method Name: __init__


Project Name: stanfordnlp/stanza
Commit Name: 583e6a38f9a7e399e8378f18dfc991591bdf781a
Time: 2018-08-27
Author: qipeng@users.noreply.github.com
File Name: models/pos/model.py
Class Name: Tagger
Method Name: __init__