Giter Site home page Giter Site logo

similarity's Introduction

similarity

Measuring Semantic Similarity in the Taxonomy of Wordnet (sim max b)

Finding graph

Currently, taxonomy is browsed breathly to find shorthest path between concepts by finding common concept, which is one of hypernym, holonym or meronym. All of them are treated as the same ones in criterion of similarity.

Output

For sim_max_b('cat', 'dog') output is: PATHLEN: 4, what is sum of 2+2. Common concepts are both Synset('carnivore.n.01') and Synset('male.n.02'), that are on distance 2 from dog synsets as well as distance 2 from cat synsets

At the distance of 1 from 'cat': [Synset('feline.n.01'), Synset('man.n.01'), ... , Synset('flog.v.01'), Synset('excrete.v.01')]

At the distance of 2 from 'cat': [Synset('carnivore.n.01'), ... , Synset('male.n.02'), Synset('communicator.n.01'), ... , Synset('imaging.n.02'), Synset('beat.v.02'), Synset('exhaust.v.05')]

At the distance of 1 from 'dog': [Synset('canine.n.02'), Synset('domestic_animal.n.01'), ... , Synset('hotdog.n.02'), Synset('ratchet.n.01')]

At the distance of 2 from 'dog': [Synset('carnivore.n.01'), ... , Synset('male.n.02'), Synset('unwelcome_person.n.01'), ... , Synset('mechanical_device.n.01'), Synset('spiral_ratchet_screwdriver.n.01')]

similarity's People

Contributors

pswedrak avatar r-toor avatar

Watchers

James Cloos avatar  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.