Retry limit and mention separation
This commit is contained in:
parent
c1d91d1693
commit
61c5caee4d
5 changed files with 65 additions and 21 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue