From 6cd8c322adec18f9d6b633b105ed7069ac61d794 Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 25 May 2016 15:23:36 +0200 Subject: [PATCH] script: stupid bug on BuildLangModel.py. --- script/BuildLangModel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/BuildLangModel.py b/script/BuildLangModel.py index a412f13..4a102d3 100755 --- a/script/BuildLangModel.py +++ b/script/BuildLangModel.py @@ -164,14 +164,14 @@ characters = {} sequences = {} prev_char = None -def process_text(text, lang): +def process_text(content, lang): global charsets global characters global sequences global prev_char if lang.clean_wikipedia_content is not None: - content = lang.clean_wikipedia_content(text) + content = lang.clean_wikipedia_content(content) # Clean out the Wikipedia syntax for titles. content = re.sub(r'(=+) *([^=]+) *\1', r'\2', content)