NGramLang: A Domain-Specific Language for Document Retrieval Using Character N-Grams and Okapi BM25 Ranking
NGramLang is a small domain-specific language and interpreter designed to make the mechanics of document retrieval explicit and executable. Through ten declarative commands, a user loads text documents, aggregates them into a corpus, and ranks them against a free-text query. The language front end is implemented with J...