Uses of Class
org.apache.tika.ml.junkdetect.BigramTables
-
Uses of BigramTables in org.apache.tika.ml.junkdetect
Methods in org.apache.tika.ml.junkdetect that return BigramTablesModifier and TypeMethodDescriptionstatic BigramTablesBigramTables.readFrom(DataInputStream dis) Inverse ofwriteTo(DataOutputStream).Methods in org.apache.tika.ml.junkdetect with parameters of type BigramTablesModifier and TypeMethodDescriptionstatic intJunkDetector.codepointToIndex(BigramTables tables, int cp) Binary-search a codepoint in the script's index.static doubleJunkDetector.computeF1MeanLogP(int[] cps, BigramTables tables) Codepoint-array form ofJunkDetector.computeF1MeanLogP(String, BigramTables).static doubleJunkDetector.computeF1MeanLogP(String text, BigramTables tables) Mean log-prob over the codepoint pairs intextusing the given script's bigram tables.Method parameters in org.apache.tika.ml.junkdetect with type arguments of type BigramTablesModifier and TypeMethodDescriptionJunkDetector.bucketSumsAndCounts(int[] cps, Map<String, BigramTables> tablesByScript) Per-script{sumLogP, count}buckets for a codepoint sequence, scored with the given per-script tables.