Пример #1
0
        public static List <string> Tokenaize(string searchStr)
        {
            HebrewNLP.HebrewNLP.Password = "******";
            List <string> searchValues           = HebrewMorphology.NormalizeSentence(searchStr);
            List <string> tokenaizedSearchValues = RemoveHebrewConnectorsAndAdjectives(searchValues);

            return(tokenaizedSearchValues);
        }
Пример #2
0
        static void Main(string[] args)
        {
            //TODO fill the password
            HebrewNLP.HebrewNLP.Password = "******";

            Console.OutputEncoding = new UTF8Encoding();
            Console.InputEncoding  = new UTF8Encoding();

            List <string> options = HebrewMorphology.NormalizeSentence("הילד שהלך לפרק ישב וקרא מלא ספרים שהיו יפים מאד", NormalizationType.INDEX);

            foreach (string option in options)
            {
                Console.Write(Reverse(option) + " ");
            }
            Console.WriteLine();
        }