예제 #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));
        }
예제 #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));
        }
예제 #3
0
 static string NameFind(string[] models, string sentence)
 {
     return(mNameFinder.GetNames(models, sentence));
 }