Retry limit and mention separation

This commit is contained in:
Mispy 2013-11-18 02:59:15 -08:00
parent c1d91d1693
commit 61c5caee4d
5 changed files with 65 additions and 21 deletions

View file

@ -44,7 +44,7 @@ module Ebooks
verbatim = [tokens] # Verbatim sentences to avoid reproducing
0.upto(passes-1) do
puts NLP.reconstruct(tokens)
log NLP.reconstruct(tokens) if $debug
varsites = {} # Map bigram start site => next token alternatives
tokens.each_with_index do |token, i|