shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.walker.semantics;
 
import java.io.Serializable;
 
/**
 * 文本相似搜索结果对象。
 * @date 2022-11-03
 */
public class TextSimilar implements Serializable {
 
    private String id;
    private double dis = 0;
 
    private String text;
 
    /**
     * 是否完全匹配,如果完全匹配则后续的就不再检查,直接输出结果。
     * @return
     * @date 2023-08-17
     */
    public boolean isPerfect() {
        return perfect;
    }
 
    public void setPerfect(boolean perfect) {
        this.perfect = perfect;
    }
 
    // 是否完全匹配
    private boolean perfect = false;
 
    public String getId() {
        return id;
    }
 
    public void setId(String id) {
        this.id = id;
    }
 
    public double getDis() {
        return dis;
    }
 
    public void setDis(double dis) {
        this.dis = dis;
    }
 
    public String getText() {
        return text;
    }
 
    public void setText(String text) {
        this.text = text;
    }
 
    @Override
    public String toString() {
        return "TextSimilar{" +
                "id='" + id + '\'' +
                ", dis=" + dis +
                ", text='" + text + '\'' +
                '}';
    }
}