ow
This commit is contained in:
1 parent
597b88d075
commit
527205520b
12 files changed
+104
-43
No files matched your search
@@ -1,7 +1,6 @@
|
||||
using CloudBuilder.Core.DatabaseAccessor.Entity;
|
||||
using CloudBuilder.Core.DependencyInjection.Task;
|
||||
using CloudBuilder.Topshelf.Python;
|
||||
using CloudBuilder.Topshelf.Task.Novel.Process;
|
||||
using CloudBuilder.Topshelf.Utility;
|
||||
|
||||
namespace CloudBuilder.Topshelf.Task
|
||||
@@ -29,22 +28,24 @@ namespace CloudBuilder.Topshelf.Task
|
||||
|
||||
text = "银发老者神色一肃的向金越禅师问道。";
|
||||
//text = "鬼灵门门主一边吩咐着,一边冷冷打量着悬浮在身前的画轴,见其并没有任何异样发生,目光闪动几下。";
|
||||
text = "韩立闻言,眉头不经意的一皱,想了想后,还是摇摇头说道:";
|
||||
List<string> sentiments = hanlp.GetTokFine(text);
|
||||
text = "这是一个小城,说是小城其实只是一个大点的镇子,名字也叫青牛镇,只有那些住在附近山沟里、没啥见识的土人,才“青牛城”“青牛城”的叫个不停。这是干了十几年门丁的张二心里话。";
|
||||
//List<string> sentiments = hanlp.GetTokFine(text);
|
||||
|
||||
sentiments = hanlp.GetTokCoarse(text);
|
||||
//sentiments = hanlp.GetTokCoarse(text);
|
||||
|
||||
string depRoot = hanlp.GetDepRoot(text);
|
||||
//string depRoot = hanlp.GetDepRoot(text);
|
||||
|
||||
List<NamedEntity> ners = hanlp.GetHanlpNer(text);
|
||||
//List<NamedEntity> ners = hanlp.GetHanlpNer(text);
|
||||
|
||||
List<List<MeaningRepresentationParsingEntity>> srls = hanlp.GetHanlpSrl(text);
|
||||
//List<List<MeaningRepresentationParsingEntity>> srls = hanlp.GetHanlpSrl(text);
|
||||
|
||||
List<HanlpConstituencyNode> cons = hanlp.GetHanlpCon(text);
|
||||
//List<HanlpConstituencyNode> cons = hanlp.GetHanlpCon(text);
|
||||
|
||||
SpeakerAnalysisHelper speakerFeatureLearner = new SpeakerAnalysisHelper();
|
||||
|
||||
speakerFeatureLearner.GetPerson(depRoot, ners, srls, cons);
|
||||
var person = speakerFeatureLearner.GetPerson(hanlp, text);
|
||||
|
||||
text = "韩立闻言,眉头不经意的一皱,想了想后,还是摇摇头说道:";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user