RiTa
index
Name RiKWICker
Description An implementation of a simple KeyWord-In-Context (KWIC) model for efficient indexing and lookup of words-in-phrases within a document.
RiKWICker kwic = new RiKWICker(this); 
kwic.addLinesFromFile("one_sentence_per_line.txt");
String[] hits = kwic.lookup("cat");
Constructors
RiKWICker(p);
Methods
addLines()   Adds lines to the model

addLinesFromFile()   Assumes an input file with one sentence per line and adds each to the current model.

lookup()   Does a lookup on the current model and returns an array of hits or null if none exist.

setLines()   (Re)sets the array of lines in the model

setLinesFromFile()   Assumes an input file with one sentence per line and builds the model from it (removing any existing data first).

Usage Web & Application