项目作者: bmitra-msft

项目描述 :
A Clean Lua Interface to the Indri Search Engine for Torch.
高级语言: C++
项目地址: git://github.com/bmitra-msft/Luandri.git
创建时间: 2017-01-26T16:30:55Z
项目社区:https://github.com/bmitra-msft/Luandri

开源协议:MIT License

下载


Luandri

A Clean LUA Interface to the Indri Search Engine for Torch.

Citation

If you use Luandri for you research, please cite the following paper.

https://arxiv.org/abs/1702.05042

Sample code

How to query an existing index using runQuery interface?

  1. local luandri = paths.dofile('luandri.lua')
  2. local query_environment = QueryEnvironment()
  3. query_environment:addIndex("path_to_index_file")
  4. local request = { query = "neural networks", resultsRequested = 5 }
  5. local results = query_environment:runQuery(request).results
  6. for k, v in pairs(results) do
  7. print(v.docid .. '\t' .. v.documentName .. '\t' .. v.snippet)
  8. end

License

Luandri is licensed under the MIT license. Please check the Lemur project for licensing information on Indri. Finally, if you modify or extend Luandri in any way then please link back to this repository.