/Luandri

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

Primary LanguageC++MIT LicenseMIT

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?

local luandri = paths.dofile('luandri.lua')

local query_environment = QueryEnvironment()
query_environment:addIndex("path_to_index_file")
local request = { query = "neural networks", resultsRequested = 5 }
local results = query_environment:runQuery(request).results

for k, v in pairs(results) do
    print(v.docid .. '\t' .. v.documentName .. '\t' .. v.snippet)
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.