Example #1
0
        public void setUp()
        {
            DetectorFactory.clear();

            LangProfile profile_en = new LangProfile("en");

            foreach (string w in TRAINING_EN.Split(' '))
            {
                profile_en.add(w);
            }
            DetectorFactory.addProfile(profile_en, 0, 3);

            LangProfile profile_fr = new LangProfile("fr");

            foreach (string w in TRAINING_FR.Split(' '))
            {
                profile_fr.add(w);
            }

            DetectorFactory.addProfile(profile_fr, 1, 3);

            LangProfile profile_ja = new LangProfile("ja");

            foreach (string w in TRAINING_JA.Split(' '))
            {
                profile_ja.add(w);
            }
            DetectorFactory.addProfile(profile_ja, 2, 3);
        }