Giter Club home page Giter Club logo

searchsystem's Introduction

Information retrieval (IR)

Information retrieval system.

  1. Work on a local document corpus.
  2. Parse and index documents using inverted file format
  3. Make use of stemming and stop lists.
  4. Implement matching based on tf-idf algorithm.
  5. Results are displayed based on relevance ranking.

Directory

  • src/Source.cpp Program source codes
  • src/IndexCreator.ext Compiled, exectuable codes. Generate from source.cpp
  • data/stop.txt Stop words get from internet.
  • data/TD_IDF_INDEX.txt Web stite conetent get from Steves Institue site by web scrawler.
  • data/test/... Different training results based on size.

Pseudo codes:

存数据 已知 term, doc, tf, idf 建一个hash mytable( key=term value=doc) For 循环读取每行信息 If (tf!=0) Mytable[key]=vector.push(doc) End for 返回mytable

查询 term 返回 mytable[term];

查询 term and term1 或者 term term1 返回 mytable[term] && mytable[term1]

查询 term or term1 返回 mytable[term] || mytable[term1]

查询 not term 返回 whole doc list - mytable[term]

用栈处理查询语句优先级 将处理后的查询语句循环查询

searchsystem's People

Contributors

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