Sfoglia il codice sorgente

Define num_queries in the proper place.

tags/v0.2
Ben Kurtovic 10 anni fa
parent
commit
f94a67e0e3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      earwigbot/wiki/copyvios/__init__.py

+ 1
- 1
earwigbot/wiki/copyvios/__init__.py Vedi File

@@ -130,9 +130,9 @@ class CopyvioMixIn(object):

if not no_links:
workspace.enqueue(parser.get_links(), exclude)
num_queries = 0
if not no_searches:
chunks = parser.chunk(self._search_config["nltk_dir"], max_queries)
num_queries = 0
for chunk in chunks:
if workspace.best.confidence >= min_confidence:
break


Caricamento…
Annulla
Salva