Skip to content

Commit

Permalink
added VariantModel.set_confusables_before_pruning() method that sets …
Browse files Browse the repository at this point in the history
…the --early-confusables parameter

Ref: #19
  • Loading branch information
proycon committed Apr 22, 2024
1 parent e4d7cc3 commit d36039e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,12 @@ impl PyVariantModel {
}
Ok(results)
}

/// Configure the model to match against known confusables prior to pruning on maximum weight.
/// This corresponds to the `--early-confusables` option for the CLI version
fn set_confusables_before_pruning(&mut self) {
self.model.set_confusables_before_pruning();
}
}

#[pymodule]
Expand Down

0 comments on commit d36039e

Please sign in to comment.