|
@@ -84,18 +84,18 @@ public class TestRuleCheckMachine {
|
|
// triad.setL_2(l_2);
|
|
// triad.setL_2(l_2);
|
|
// triads.add(triad);
|
|
// triads.add(triad);
|
|
|
|
|
|
- String sentence = "双肾形态可,左肾上极见高密度小结节,中部见等低密度结节,部分突出包膜";
|
|
|
|
|
|
+ String sentence = "粘液糊澄清,量少";
|
|
l_1 = new Lemma();
|
|
l_1 = new Lemma();
|
|
l_2 = new Lemma();
|
|
l_2 = new Lemma();
|
|
|
|
|
|
- l_1.setText("脾");
|
|
|
|
- l_2.setText("均匀");
|
|
|
|
|
|
+ l_1.setText("澄清");
|
|
|
|
+ l_2.setText("量少");
|
|
|
|
|
|
- l_1.setPosition("0,0");
|
|
|
|
- l_2.setPosition("5,6");
|
|
|
|
|
|
+ l_1.setPosition("3,4");
|
|
|
|
+ l_2.setPosition("6,7");
|
|
|
|
|
|
- l_1.setProperty("部位");
|
|
|
|
- l_2.setProperty("属性值");
|
|
|
|
|
|
+ l_1.setProperty("属性值");
|
|
|
|
+ l_2.setProperty("辅检其他");
|
|
|
|
|
|
triad = new Triad();
|
|
triad = new Triad();
|
|
triad.setL_1(l_1);
|
|
triad.setL_1(l_1);
|
|
@@ -111,7 +111,11 @@ public class TestRuleCheckMachine {
|
|
System.out.println();
|
|
System.out.println();
|
|
System.out.println("size of triads " + triads.size());
|
|
System.out.println("size of triads " + triads.size());
|
|
RuleCheckMachine ruleCheckMachine = new RuleCheckMachine();
|
|
RuleCheckMachine ruleCheckMachine = new RuleCheckMachine();
|
|
|
|
+ long startTime=System.currentTimeMillis();
|
|
ruleCheckMachine.checkAndRemove(sentence, triads);
|
|
ruleCheckMachine.checkAndRemove(sentence, triads);
|
|
|
|
+ long endTime=System.currentTimeMillis();
|
|
|
|
+
|
|
|
|
+ System.out.println("当前程序耗时:"+(endTime-startTime) +"ms");
|
|
|
|
|
|
System.out.println("size of triads " + triads.size());
|
|
System.out.println("size of triads " + triads.size());
|
|
}
|
|
}
|