C F G M O S T

C

categorize(Collection<FingerPrint>) - Method in class org.knallgrau.utils.textcat.FingerPrint
categorizes the FingerPrint by computing the distance to the FingerPrints in the passed Collection. the category of the FingerPrint with the lowest distance is assigned to this FingerPrint.
categorize(String) - Method in class org.knallgrau.utils.textcat.TextCategorizer
categorizes the text passed to it
categorize(String, int) - Method in class org.knallgrau.utils.textcat.TextCategorizer
categorizes only a certain amount of characters in the text. recommended when categorizing large texts in order to increase performance.
create(File) - Method in class org.knallgrau.utils.textcat.FingerPrint
creates a FingerPrint by analysing the content of the given file.
create(String) - Method in class org.knallgrau.utils.textcat.FingerPrint
fills the FingerPrint with all the NGrams and their numer of occurences in the passed text.

F

FingerPrint - Class in org.knallgrau.utils.textcat
 
FingerPrint() - Constructor for class org.knallgrau.utils.textcat.FingerPrint
 
FingerPrint(String) - Constructor for class org.knallgrau.utils.textcat.FingerPrint
creates a FingerPrint by reading the FingerPrint-file referenced by the passed path.
FingerPrint(InputStream) - Constructor for class org.knallgrau.utils.textcat.FingerPrint
creates a FingerPrint by reading it with the passed InputStream

G

getCategory() - Method in class org.knallgrau.utils.textcat.FingerPrint
returns the category of the FingerPrint or "unknown" if the FingerPrint wasn't categorized yet.
getCategoryDistances() - Method in class org.knallgrau.utils.textcat.FingerPrint
 
getCategoryDistances(String) - Method in class org.knallgrau.utils.textcat.TextCategorizer
categorizes a text but returns a map containing all categories and their distances to the text.
getPosition(String) - Method in class org.knallgrau.utils.textcat.FingerPrint
gets the position of the NGram passed to method in the FingerPrint. the NGrams are in descending order according to the number of occurences in the text which was used creating the FingerPrint.

M

main(String[]) - Static method in class org.knallgrau.utils.textcat.TextCategorizer
reads from stdin til EOF is read. prints the determined category of the input and terminates afterwards.

O

org.knallgrau.utils.textcat - package org.knallgrau.utils.textcat
 

S

save() - Method in class org.knallgrau.utils.textcat.FingerPrint
saves the fingerprint to a file named .lm in the execution path.
setConfFile(String) - Method in class org.knallgrau.utils.textcat.TextCategorizer
sets the configuration file path.

T

TextCategorizer - Class in org.knallgrau.utils.textcat
 
TextCategorizer() - Constructor for class org.knallgrau.utils.textcat.TextCategorizer
 
TextCategorizer(String) - Constructor for class org.knallgrau.utils.textcat.TextCategorizer
creates a new TextCategorizer with the given configuration file. the configuration file maps paths to FingerPrint files to categories which are used to categorize the texts passed to the TextCategorizer.
toString() - Method in class org.knallgrau.utils.textcat.FingerPrint
returns the FingerPrint as a String in the FingerPrint file-format

C F G M O S T