我自己的时间命名实体识别代码
NERTrainer trainer = new NERTrainer();
trainer.tagSet.nerLabels.clear();
trainer.tagSet.nerLabels.add("td");
PerceptronNERecognizer recognizer = new PerceptronNERecognizer(trainer.train(TIME_BLODD_TRAIN_CORPUS, TIME_BLODD_MODEL).getModel());
// 在NER预测前,需要一个分词器,最好训练自同源语料库
LinearModel cwsModel = new CWSTrainer().train(TIME_BLODD_TRAIN_CORPUS, TIME_BLODD_MODEL.replace("model.bin", "cws.bin")).getModel();
PerceptronSegmenter segmenter = new PerceptronSegmenter(cwsModel);
PerceptronLexicalAnalyzer analyzer = new PerceptronLexicalAnalyzer(segmenter, new PerceptronPOSTagger(), recognizer);
analyzer.enableTranslatedNameRecognize(false).enableCustomDictionary(false);
System.out.println(analyzer.analyze("昨天上午10点的血压是60\\90"));
用什么java代码可以达到图片中的效果?
昨天上午10点的血压是60\90