We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Specifically
semsimian/src/similarity.rs
Lines 56 to 84 in 8d11f4c
Possible solution:
pub fn calculate_term_pairwise_information_content( closure_map: &HashMap<PredicateSetKey, HashMap<TermID, HashSet<TermID>>>, ic_map: &HashMap<PredicateSetKey, HashMap<TermID, f64>>, entity1: &HashSet<TermID>, entity2: &HashSet<TermID>, predicates: &Option<Vec<Predicate>>, ) -> f64 { let entity1_to_entity2_sum_resnik_sim: f64 = entity1.par_iter().map(|e1_term| { entity2.par_iter().map(|e2_term| { calculate_max_information_content(closure_map, ic_map, e1_term, e2_term, predicates) }).max_by(|a, b| a.partial_cmp(b).unwrap()).unwrap_or(0.0) }).sum(); entity1_to_entity2_sum_resnik_sim / entity1.len() as f64 }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Specifically
semsimian/src/similarity.rs
Lines 56 to 84 in 8d11f4c
Possible solution:
The text was updated successfully, but these errors were encountered: