Skip to content

Commit

Permalink
Write progress messages to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
khgkim committed Sep 30, 2020
1 parent c451782 commit 0683d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symspell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<T: StringStrategy> SymSpell<T> {

for (i, line) in sr.lines().enumerate() {
if i % 50_000 == 0 {
println!("progress: {}", i);
eprintln!("progress: {}", i);
}
let line_str = line.unwrap();
self.load_dictionary_line(&line_str, term_index, count_index, separator);
Expand Down Expand Up @@ -146,7 +146,7 @@ impl<T: StringStrategy> SymSpell<T> {
let sr = BufReader::new(file);
for (i, line) in sr.lines().enumerate() {
if i % 50_000 == 0 {
println!("progress: {}", i);
eprintln!("progress: {}", i);
}
let line_str = line.unwrap();
self.load_bigram_dictionary_line(&line_str, term_index, count_index, &separator);
Expand Down

0 comments on commit 0683d92

Please sign in to comment.