瀏覽代碼

Copyvios: auto-fail very small articles (< 20 chain links)

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
755dff9714
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      earwigbot/wiki/copyright.py

+ 4
- 0
earwigbot/wiki/copyright.py 查看文件

@@ -241,6 +241,10 @@ class CopyrightMixin(object):
article_chain = _MarkovChain(clean)
last_query = time()

if article_chain.size() < 20: # Auto-fail very small articles
return _CopyvioCheckResult(False, best_confidence, best_match,
num_queries, article_chain, best_chains)

while (chunks and best_confidence < min_confidence and
(max_queries < 0 or num_queries < max_queries)):
urls = search(chunks.pop(0))


Loading…
取消
儲存