Skip to content

Instantly share code, notes, and snippets.

@SupermanScott
Created February 12, 2012 23:11
Show Gist options
  • Save SupermanScott/1811611 to your computer and use it in GitHub Desktop.
Save SupermanScott/1811611 to your computer and use it in GitHub Desktop.
term_document = dict(
term=token,
matches=[dict(
doc_id=document_id,
field_name=field_name,
original_word=original_word,
term_fq=frequency)],
document_fq=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment