An older and younger man
Two men are smiling and
Neutral
smiling.
laughing at the cats playing
on the floor.
A soccer game with multiple
Some men are playing a
Entailment
males playing.
sport.
FIG. 8 illustrates a block diagram of an example structure of the decoder 420 configured to perform an NLI task according to some embodiments of the present invention. The decoder 420 is configured to receive the sentence representation 412 of the sentence 402 and a further sentence representation 812 of a further sentence and perform an NLI task based on the sentence representations 412 and 812.
In the example of FIG. 8, the sentence representation 412 is re-denoted as p and the sentence representation 812 is denoted as h. The sentence representation 812 may be determined according to the example embodiments described above for determining the sentence representation 412, or may be determined in a different manner from the sentence representation 412. The scope of the embodiments of the present invention is not limited in this regard.
As shown, the decoder 420 include a matching module 810 configured to matching the sentence representation 412 and the sentence representation 812. In some embodiments, the matching may be implemented as follows:
m=[p;h;|p?h|;p⊙h]??Equation (9)