Это то, что у меня есть на данный момент. :
Код: Выделить всё
const string text = "The disastrous cat runs after the fat field mouse.";
Catalyst.Models.English.Register();
Storage.Current = new DiskStorage(AppDomain.CurrentDomain.BaseDirectory);
var nlp = await Pipeline.ForAsync(Language.English);
var doc = new Document(text, Language.English);
nlp.ProcessSingle(doc);
foreach (var sentence in doc.TokensData)
{
foreach (var token in sentence)
{
if(token.Tag == PartOfSpeech.VERB)
{
// so here I'd like to the root form of the verb
}
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... i-catalyst
Мобильная версия