wyu-du / ARCII-for-Matching-Natural-Language-Sentences

A simple Keras implementation of ARC-II model proposed by paper "Convolutional Neural Network Architectures for Matching Natural Language Sentences"
25 stars 10 forks source link
keras-implementations natural-language-processing semantic-matching

ARCII-for-Matching-Natural-Language-Sentences

A simple version of ARC-II model implemented in Keras.
Please reference paper:Convolutional Neural Network Architectures for Matching Natural Language Sentences

Quick Glance

  1. Input Data Format
    • Train set:
      label   |q1 |q2
      1   |Amrozi accused his brother, whom he called "the witness", of deliberately distorting his evidence. |Referring to him as only "the witness", Amrozi accused his brother of deliberately distorting his evidence.
      0   |Yucaipa owned Dominick's before selling the chain to Safeway in 1998 for $2.5 billion. |Yucaipa bought Dominick's in 1995 for $693 million and sold it to Safeway for $1.8 billion in 1998.
  1. Train the model

    $ python arcii.py
  2. Loss and Accuracy
    A toy data set example copied from MatchZoo's toy example

Requirements

To do list