demo
Input a word and hit search button.
demo section ends.
hint
Contents used in above search are two short quotes from Alice's Adventures in Wonderland by Lewis Carroll. So, "alice" is not a bad choice to search at first.
contents on search
indexes generated
Index files are formatted as json. Followings are these index files genarated for the above two contents. Two characters and a character indexes for the bigram.
howto make indexes work
-
Open a console and locate at the folder
js-py-ngram-full-text-search
. -
Place content files in a folder
txt
. -
Make a blank folder
idx
. -
Run
python test4_jsngram.py
. -
Files are created in
idx
. -
Download
jquery-3.1.0.min.js
from JQuery web site. Another version can work, with just changing the script link uri in html file. -
Open
example1-JsNgram.html
with yourFireFox
orSafari
. - Try search and fun:)