package pl.pg.gda.eti.kio.esc.bayes;

import java.io.IOException;
import java.util.Map;

/**
 * @author Wojciech Stanisławski
 * @since 12.01.17
 */
public class BayesClassifier {
	
	public static void main(String[] args) throws IOException {
	//public void classify(/* coś tu będzie */) {
		BayesCategoryCounter bayesCategoryCounter = new BayesCategoryCounter();
		BayesCategoryCounter.CategoryStatistics categoryStatistics = bayesCategoryCounter.countCategories("simple/temp-po_slowach-categories-simple-20120104");

		BayesWordCounter bayesWordCounter = new BayesWordCounter();
		int wordsInDictionary = bayesWordCounter.countWordsInDictionary();
		
		BayesWordInCategoryCounter bayesWordInCategoryCounter = new BayesWordInCategoryCounter();
		BayesWordInCategoryCounter.WordsInCategory wordsInCategory = bayesWordInCategoryCounter.countWordsInCategories();
	}
}

@@ -31,16 +31,68 @@
 bayes;%0A%0A
+import pl.pg.gda.eti.kio.esc.WordDictionaryMerger;%0A%0A
 import j
@@ -111,16 +111,16 @@
 eption;%0A
-
 import j
@@ -335,16 +335,201 @@
 e */) %7B%0A
+%09%09WordDictionaryMerger merger = new WordDictionaryMerger();%0A%09%09merger.mergeFiles(%22simple/temp-po_slowach-feature_dict-simple-20120104%22, %22en/en-po_slowach-feature_dict-en-20111201%22, 1);%0A%0A
 %09%09BayesC
@@ -877,21 +877,40 @@
 tionary(
+merger.getChunks()%5B0%5D
 );%0A
-%09%09
 %0A%09%09Bayes
@@ -992,24 +992,36 @@
 ounter();%0A%09%09
+Map%3CString, 
 BayesWordInC
@@ -1050,18 +1050,25 @@
 Category
- w
+%3E stringW
 ordsInCa
@@ -1073,16 +1073,19 @@
 Category
+Map
  = bayes
@@ -1129,16 +1129,138 @@
 egories(
+%22simple/temp-po_slowach-categories-simple-20120104%22, %22simple/temp-po_slowach-lista-simple-20120104%22, merger.getChunks()%5B0%5D
 );%0A%09%7D%0A%7D%0A

fix errorow