Esempio n. 1
0
        private string FindNames(string sentence)
        {
            if (mNameFinder == null)
            {
                mNameFinder = new OpenNLP.Tools.NameFind.EnglishNameFinder(mModelPath + "namefind\\");
            }

            string[] models = new string[] { "date", "location", "money", "organization", "percentage", "person", "time" };
            return(mNameFinder.GetNames(models, sentence));
        }
Esempio n. 2
0
        public static string FindNames(string sentence)
        {
            if (mNameFinder == null)
            {
                mNameFinder = new OpenNLP.Tools.NameFind.EnglishNameFinder(mModelPath + "namefind\\");
            }

            string[] models = new string[] { "person" };
            return(mNameFinder.GetNames(models, sentence));
        }
Esempio n. 3
0
 static string NameFind(string[] models, string sentence)
 {
     return(mNameFinder.GetNames(models, sentence));
 }