Browse Source

中间层添加分词后的数据结构

MarkHuang 6 years ago
parent
commit
0f7a8786c7
1 changed files with 23 additions and 0 deletions
  1. 23 0
      aipt-service/src/main/java/com/diagbot/dto/Lexeme.java

+ 23 - 0
aipt-service/src/main/java/com/diagbot/dto/Lexeme.java

@@ -0,0 +1,23 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * 词元定义.
+ */
+@Getter
+@Setter
+public class Lexeme {
+    private int offset = 0;
+    private int length = 0;
+
+    private String text;
+    private String property;
+    //段落分割 成句 '。',';',';','?' = -1 , ',',',',':',':' = -2
+    private String flag;
+
+    private float threshold;
+
+    private String concept;
+}