Advertisement
Guest User

remi

a guest
Dec 11th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public static void main(String[] args) {
  2. //initialization of the recognition system
  3. AuthorRecognizer1 reco = new AuthorRecognizer1("lm/small_author_corpus/fichConfig_bigram_1000sentences.txt","lm/small_author_corpus/corpus_20000.vocab","data/small_author_corpus/validation/authors.txt");
  4.  
  5. //computation of the hypothesis author file
  6. reco.recognizeFileLanguage("data/small_author_corpus/validation/sentences_100sentences.txt", "data/small_author_corpus/validation/authors_hyp1.txt");
  7.  
  8. //computation of the performance of the recognition system
  9. System.out.println(RecognizerPerformance.evaluate("data/small_author_corpus/validation/authors_100sentences_ref.txt", "data/small_author_corpus/validation/authors_hyp1.txt"));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement