All Downloads are FREE. Search and download functionalities are using the official Maven repository.

artoria.action.similarity.TextSimilarity Maven / Gradle / Ivy

The newest version!
package artoria.action.similarity;

import java.util.List;

public class TextSimilarity {
    private List words1;
    private List words2;
    private String algorithm;
    private String text1;
    private String text2;

    public TextSimilarity(List words1, List words2, String algorithm) {
        this.algorithm = algorithm;
        this.words1 = words1;
        this.words2 = words2;
    }

    public TextSimilarity(List words1, List words2) {
        this.words1 = words1;
        this.words2 = words2;
    }

    public TextSimilarity(String text1, String text2, String algorithm) {
        this.algorithm = algorithm;
        this.text1 = text1;
        this.text2 = text2;
    }

    public TextSimilarity(String text1, String text2) {
        this.text1 = text1;
        this.text2 = text2;
    }

    public TextSimilarity() {

    }

    public String getAlgorithm() {

        return algorithm;
    }

    public void setAlgorithm(String algorithm) {

        this.algorithm = algorithm;
    }

    public String getText1() {

        return text1;
    }

    public void setText1(String text1) {

        this.text1 = text1;
    }

    public String getText2() {

        return text2;
    }

    public void setText2(String text2) {

        this.text2 = text2;
    }

    public List getWords1() {

        return words1;
    }

    public void setWords1(List words1) {

        this.words1 = words1;
    }

    public List getWords2() {

        return words2;
    }

    public void setWords2(List words2) {

        this.words2 = words2;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy