Man*_*lue 11 c# asp.net string asp.net-mvc nlp
我正在开发一个应用程序,其中我有一些数据从网络提取到一个类.上课是
public class Detail
{
public string name { get; set; }
public List<Education> education { get; set; }
public City city { get; set; }
public List<Work> work { get; set; }
}
public class Education
{
public string DegreeName { get; set; }
}
public class City
{
public string name { get; set; }
}
public class Work
{
public string name { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
为上述类中的人存储数据.
现在我想搜索一个字符串说 q=" Which Manager Graduated From USA ?"
所以我希望它搜索上面的查询......
根据匹配的单词数量,我想给出用户名.如果他是一名毕业于美国的经理,那么寻找他人?(对于像印度的一些董事这样的搜索,可能会少说的话)
我试图寻找像字的做法经理在Work和研究生在Education和位置进行USA
我正在制作一个搜索字符串数组
string[] qList = q.Split(' ');
Run Code Online (Sandbox Code Playgroud)
然后遍历课程.但我不知道如何(有效地)在课堂上查找数据.
我的方法是否适合搜索,还是有更好的选择?