Giter Site home page Giter Site logo

documentretriever's Introduction

Dependencies:
----------------
1) Python3.5
2) Numpy
3) NLTK

Run Indexer
--------------

python3.5 indexer.py 
		-docs "directory of corpus which to be indexed"			// mandatory argument
		-index "directory where index will be stored" 			// mandatory argument
		-mode "0 for new index, 1 for updating old index" 		// optional, default 0
		-max_size "max tokens in file" 					// optional, default 200 
		-min_size "minimum tokens in file"				// optional, default 40

Example: python3.5 indexer.py -docs /home/nayak/Work/TREC/trec-data/trec-segmented-130/trec2001 -index /home/nayak/Work/QAFocusedIR/Experiment/trec-2001/index/  -mode 0 -max_size 200 -min_size 40


Run Searcher
---------------

python3.5 searcher.py 
		-index "Index directory" 				// mandatory argument
		-qs "question file" 					// mandatory argument
		-output "rank list will be written in this file" 	// mandatory argument
		-top 'number of top docs to be retrieved' 		// optional, default 10
		-error "any error will be written to this file"		// mandatory argument

Example: python3.5 searcher.py -index /home/nayak/Work/QAFocusedIR/Experiment/trec-2001/index/ -qs /home/nayak/Work/QAFocusedIR/Experiment/trec-2001/mod_questions.txt -output /home/nayak/Work/QAFocusedIR/Experiment/trec-2001/rank-list.txt -top 500 -error /home/nayak/Work/QAFocusedIR/Experiment/trec-2001/error.txt


documentretriever's People

Contributors

nayakt avatar

Stargazers

 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.