Giter Club home page Giter Club logo

infor's Introduction

Information Retrieval in Python

InfoR is a Python package for Information Retrieval. Information retrieval means given a set of (text/html/xml) documents, extract the documents which are most relevant to a seach query. You search engine e.g. Google is a retrieval system.

InfoR has support for 3 types of retrieval systems :

  1. Vector Space Models
  2. Language Models
  3. Probabilitistic Models

For more information (no pun intended!) on these models see http://nlp.stanford.edu/IR-book/

Google uses PageRank algorithm which exploits the hyperlinks in an html document. This package currently works only for a corpus of text documents. I'm hoping to add html/xml support also and hopefully include an implementation of PageRank.

Download : https://pypi.python.org/pypi/infor/

Installation : pip install infor

Dependencies:

  1. numpy
  2. Scikit-Learn

Documentation: https://pythonhosted.org/infor/

Usage:

from InfoR.VectorSpaceModels import VSM, LanguageModel, ProbModel

vector space mode

out = VSM(corpus) out.search(query, number_of_docs_to_be_returned, tf_idf=True, LSA=True, n_comp=3)

language model

out = LanguageModel(corpus) out.search(query, number_of_docs_to_be_returned)

probabistic model

out = ProbModel(corpus) out.search(query, number_of_docs_to_be_returned)

infor's People

Contributors

januverma avatar

Stargazers

Michał Lüth avatar ILYAS KERBAL avatar  avatar  avatar Maniteja Nandana avatar  avatar  avatar Irshad Mohammed avatar IKEGAMI Yukino avatar Fedor Nikolaev avatar

Watchers

James Cloos avatar Janu Verma avatar  avatar

infor's Issues

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.