Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added hindi language toml and wiki sample #89

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
3 changes: 2 additions & 1 deletion src/extractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ fn choose(
predicate: impl FnMut(&Rules, &str) -> bool,
mut replacer: impl FnMut(&Rules, &str) -> String,
) -> Vec<String> {
let sentences_replaced_abbreviations: Vec<String> = SentenceTokenizer::<Standard>::new(text, training_data)
let sentences_replaced_abbreviations: Vec<String> = SentenceTokenizer::<Standard>::new(replacer(rules, text).as_ref(), training_data)
karthiksibm marked this conversation as resolved.
Show resolved Hide resolved
//let sentences_replaced_abbreviations: Vec<String> = SentenceTokenizer::<Standard>::new(text, training_data)
.map(|item| { replacer(rules, item) })
.collect();

Expand Down
Loading