Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitextor/bicleaner-ai.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bicleaner_ai/training.py')
-rw-r--r--bicleaner_ai/training.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bicleaner_ai/training.py b/bicleaner_ai/training.py
index eb45840..f11cde3 100644
--- a/bicleaner_ai/training.py
+++ b/bicleaner_ai/training.py
@@ -223,7 +223,7 @@ def replace_freq_words(sentence, double_linked_zipf_freqs):
wfreq = double_linked_zipf_freqs.get_word_freq(w)
alternatives = double_linked_zipf_freqs.get_words_for_freq(wfreq)
if alternatives is not None:
- alternatives = list(alternatives)
+ alternatives = list(sorted(alternatives))
# Avoid replace with the same word
if w.lower() in alternatives: