700abc65fd2172a2c6809dd9b72cf50fc2407772,allennlp/models/decomposable_attention.py,DecomposableAttention,__init__,#DecomposableAttention#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,64

Before Change


        super().__init__(vocab, regularizer)

        self._text_field_embedder = text_field_embedder
        self._attend_feedforward = TimeDistributed(attend_feedforward)
        self._matrix_attention = LegacyMatrixAttention(similarity_function)
        self._compare_feedforward = TimeDistributed(compare_feedforward)
        self._aggregate_feedforward = aggregate_feedforward
        self._premise_encoder = premise_encoder

After Change


    premise_encoder : `Seq2SeqEncoder`, optional (default=`None`)
        After embedding the premise, we can optionally apply an encoder.  If this is `None`, we
        will do nothing.
    hypothesis_encoder : `Seq2SeqEncoder`, optional (default=`None`)
        After embedding the hypothesis, we can optionally apply an encoder.  If this is `None`,
        we will use the `premise_encoder` for the encoding (doing nothing if `premise_encoder`
        is also `None`).
    initializer : `InitializerApplicator`, optional (default=`InitializerApplicator()`)
        Used to initialize the model parameters.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: allenai/allennlp
Commit Name: 700abc65fd2172a2c6809dd9b72cf50fc2407772
Time: 2020-02-03
Author: mattg@allenai.org
File Name: allennlp/models/decomposable_attention.py
Class Name: DecomposableAttention
Method Name: __init__


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 164dd4dd3df73af90931d0dcc6ccab94956adc32
Time: 2018-04-08
Author: wang.alex.c@gmail.com
File Name: src/models.py
Class Name: HeadlessPairAttnEncoder
Method Name: __init__


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 164dd4dd3df73af90931d0dcc6ccab94956adc32
Time: 2018-04-08
Author: wang.alex.c@gmail.com
File Name: src/models.py
Class Name: HeadlessSentEncoder
Method Name: __init__