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