Git Product home page Git Product logo

paraphrase_detection's Introduction

Paraphrase detection

About

Paraphrase detection is the task to define whether two formally different texts have the same (or similar) meaning. This notebook deals with sentence-level paraphrases from Paraphraser corpus.

The Paraphraser corpus contains sentence pairs obtained from the Russian news headlines (РИА Новости, Лента.ру, Российская газета, РБК) with crowdsourced annotation Pivovarova et al., 2017.

Paraphrase classes include:

  • 1 - non-paraphrases
  • 0 - loose paraphrases (similar meaning)
  • 1 - strict paraphrases (same meaning)

No specific criteria on the distinction between loose and strict paraphrases are provided by the creators of the corpus, so we take it as is.

Structure

In the notebook with paraphrase detection algorithm we try to detect 7 syntactic and 7 lexic transformations which lead to a paraphrase. Some functions which detect a transformation require txt files that are stored in data (they are also incorporated into the ipynb file so you don't have to dowload them to run the code). Each sentence pair is viewed as a number of transformations. These transformations serve as features for the future classification model.

We perform two-class and three-class classification with a number of models.

paraphrase_detection's People

Contributors

annatrn0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.