[uchardet] script: stupid bug on BuildLangModel.py.



commit 6cd8c322adec18f9d6b633b105ed7069ac61d794
Author: Jehan <jehan girinstud io>
Date:   Wed May 25 15:23:36 2016 +0200

    script: stupid bug on BuildLangModel.py.

 script/BuildLangModel.py |    4 ++--
 1 files 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]