ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface AstProbeOptions

    Options for astTest / evaluateCorpusAst.

    export interface AstProbeOptions {
    /** Which caches to draw titles from: `"cache"`, `"results"`, or `"both"`. Default `"both"`. */
    source?: CorpusSourceOption;
    /** Rows to show per table. `0` or `Infinity` means all. Default 15. */
    limit?: number;
    /** One or more suppliers to narrow to; case-insensitive, partial names allowed. */
    suppliers?: string | string[];
    /** Scorer used to rank survivors. Does not affect which titles survive. Default `token_set_ratio`. */
    scorer?: FuzzScorerName;
    /** Relevance floor passed to `scoreAstMatch`. Default 50 (SupplierBase's `minMatchPercentage`). */
    threshold?: number;
    /** Per-word fuzzy presence in the leaf gate. Default true (matches fuzzing-enabled production). */
    fuzzyWords?: boolean;
    /** Also score with `fuzzyWords` inverted and diff the survivor sets. Default true. */
    compareFuzzyWords?: boolean;
    /** Print console tables. Default true. */
    print?: boolean;
    }
    interface AstProbeOptions {
        source?: CorpusSourceOption;
        limit?: number;
        suppliers?: string | string[];
        scorer?:
            | "ratio"
            | "partial_ratio"
            | "token_sort_ratio"
            | "token_set_ratio"
            | "token_similarity_sort_ratio"
            | "partial_token_sort_ratio"
            | "partial_token_set_ratio"
            | "partial_token_similarity_sort_ratio"
            | "WRatio";
        threshold?: number;
        fuzzyWords?: boolean;
        compareFuzzyWords?: boolean;
        print?: boolean;
    }
    Index

    Properties

    Which caches to draw titles from: "cache", "results", or "both". Default "both".

    limit?: number

    Rows to show per table. 0 or Infinity means all. Default 15.

    suppliers?: string | string[]

    One or more suppliers to narrow to; case-insensitive, partial names allowed.

    scorer?:
        | "ratio"
        | "partial_ratio"
        | "token_sort_ratio"
        | "token_set_ratio"
        | "token_similarity_sort_ratio"
        | "partial_token_sort_ratio"
        | "partial_token_set_ratio"
        | "partial_token_similarity_sort_ratio"
        | "WRatio"

    Scorer used to rank survivors. Does not affect which titles survive. Default token_set_ratio.

    threshold?: number

    Relevance floor passed to scoreAstMatch. Default 50 (SupplierBase's minMatchPercentage).

    fuzzyWords?: boolean

    Per-word fuzzy presence in the leaf gate. Default true (matches fuzzing-enabled production).

    compareFuzzyWords?: boolean

    Also score with fuzzyWords inverted and diff the survivor sets. Default true.

    print?: boolean

    Print console tables. Default true.