コード例 #1
0
        public QueryIndependentFeatures()
        {
            Console.WriteLine("Initializing QueryIndependentFeatures");
            const string buhWordsFilepath           = "Dictionaries/BuhWords.txt";
            const string taxWordsFilepath           = "Dictionaries/TaxWords.txt";
            const string controlSystemWordsFilepath = "Dictionaries/ControlSystemWords.txt";
            const string formWordsFilepath          = "Dictionaries/FormWords.txt";

            buhWords           = File.ReadAllLines(buhWordsFilepath).Select(line => line.Trim().ToLower()).ToList();
            taxWords           = File.ReadAllLines(taxWordsFilepath).Select(line => line.Trim().ToLower()).ToList();
            controlSystemWords =
                File.ReadAllLines(controlSystemWordsFilepath).Select(line => line.Trim().ToLower()).ToList();
            formWords             = File.ReadAllLines(formWordsFilepath).Select(line => line.Trim().ToLower()).ToList();
            buhonlineDataProvider = new BuhOnlineDataProvider();
            lemmatizer            = new Lemmatizer();
        }
コード例 #2
0
 public QueryDependentFeatures()
 {
     buhonlineDataProvider = new BuhOnlineDataProvider();
 }