|
@@ -1,5 +1,6 @@
|
|
package org.diagbot.nlp.test;
|
|
package org.diagbot.nlp.test;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import org.diagbot.nlp.participle.ParticipleToken;
|
|
import org.diagbot.nlp.participle.ParticipleToken;
|
|
import org.diagbot.nlp.participle.ParticipleUtil;
|
|
import org.diagbot.nlp.participle.ParticipleUtil;
|
|
import org.diagbot.nlp.participle.cfg.Configuration;
|
|
import org.diagbot.nlp.participle.cfg.Configuration;
|
|
@@ -47,6 +48,7 @@ public class ParticipleTest {
|
|
result = result + " | " + lexeme.getText();
|
|
result = result + " | " + lexeme.getText();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ System.out.println(JSON.toJSONString(lexemes));
|
|
// ParticipleToken token = new ParticipleToken();
|
|
// ParticipleToken token = new ParticipleToken();
|
|
// token.start(new StringReader(content), segment);
|
|
// token.start(new StringReader(content), segment);
|
|
// LexemePath<Lexeme> lexemePath = token.getLexemePath();
|
|
// LexemePath<Lexeme> lexemePath = token.getLexemePath();
|