This function implements the ABC model for literature-based discovery with enhanced term filtering and validation.
abc_model(
co_matrix,
a_term,
c_term = NULL,
min_score = 0.1,
n_results = 100,
scoring_method = c("multiplication", "average", "combined", "jaccard"),
b_term_types = NULL,
c_term_types = NULL,
exclude_general_terms = TRUE,
filter_similar_terms = TRUE,
similarity_threshold = 0.8,
enforce_strict_typing = TRUE,
validation_method = "pattern"
)A data frame with ranked discovery results.
A co-occurrence matrix produced by create_comat().
Character string, the source term (A).
Character string, the target term (C). If NULL, all potential C terms will be evaluated.
Minimum score threshold for results.
Maximum number of results to return.
Method to use for scoring.
Character vector of entity types allowed for B terms.
Character vector of entity types allowed for C terms.
Logical. If TRUE, excludes common general terms.
Logical. If TRUE, filters out B-terms that are too similar to A-term.
Numeric. Maximum allowed string similarity between A and B terms.
Logical. If TRUE, enforces stricter entity type validation.
Character. Method to use for entity validation: "pattern", "nlp", "api", or "comprehensive".