Giter Site home page Giter Site logo

ir_whoosh_lib's Introduction

Whoosh libracy custom usage

Introduction

A simple demonstration of using Whoosh library for indexing documents

The retrieval pipeline is as following:

  • Crawl news data on the internet.
  • Preprocess data and construct Index with Whoosh library.
  • Input query and preprocess query data.
  • Search and show the results.

Environment Settings

Please follow my previous setups guide TF-IDF-Document-Retrieval

Crawling the data and building documents

Please follow my previous implementation step by step to crawl and process the documentsTF-IDF-Document-Retrieval

Whoosh library for indexing documents

Now we have the documents being standardized. These documents were stored in json file which can be then used for indexing documents with the help of Whoosh library.

Change some parameters in simeple_whoosh_demo.py as following:

query_input = #YOUR QUERY
limit_res = #LIMITED NUMBER OF RESULTS
path_document = #PATH TO JSON DATA OF DOCUMENTS

Then run the script to perform the search.

ir_whoosh_lib's People

Contributors

nttung1110 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.