public List < CRFCliqueTree > getCliqueTrees ( String filename , DocumentReaderAndWriter < IN > readerAndWriter ) { // only for the OCR data does this matter flags . ocrTrain = false ; List < CRFCliqueTree > cts = new ArrayList < CRFCliqueTree > ( ) ; ObjectBank < List < IN > > docs = makeObjectBankFromFile ( filename , readerAndWriter ) ; for ( List < IN > doc : docs ) { cts . add ( getCliqueTree ( doc ) ) ; } return cts ; }
Want to make arbitrary probability queries? Then this is the method for you . Given the filename it reads it in and breaks it into documents and then makes a CRFCliqueTree for each document . you can then ask the clique tree for marginals and conditional probabilities of almost anything you want .