2019-03-02 15:10:46 +01:00
|
|
|
/*
|
|
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
package FunctionLayer;
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
import FunctionLayer.StanfordParser.SentimentValueCache;
|
2019-03-02 15:10:46 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author install1
|
|
|
|
*/
|
2019-05-19 20:35:18 +02:00
|
|
|
public class SimilarityMatrix {
|
2019-03-02 15:10:46 +01:00
|
|
|
|
2019-08-03 14:35:09 +02:00
|
|
|
private String PrimaryString;
|
|
|
|
private String SecondaryString;
|
|
|
|
private double distance;
|
|
|
|
private SentimentValueCache cacheValue1;
|
|
|
|
private SentimentValueCache cacheValue2;
|
2019-05-19 20:35:18 +02:00
|
|
|
|
|
|
|
public final double getDistance() {
|
2019-03-02 15:10:46 +01:00
|
|
|
return distance;
|
|
|
|
}
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
public final void setDistance(double distance) {
|
2019-03-02 15:10:46 +01:00
|
|
|
this.distance = distance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public SimilarityMatrix(String str1, String str2) {
|
|
|
|
this.PrimaryString = str1;
|
|
|
|
this.SecondaryString = str2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public SimilarityMatrix(String str1, String str2, double result) {
|
|
|
|
this.PrimaryString = str1;
|
|
|
|
this.SecondaryString = str2;
|
|
|
|
this.distance = result;
|
|
|
|
}
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
public final String getPrimaryString() {
|
2019-03-02 15:10:46 +01:00
|
|
|
return PrimaryString;
|
|
|
|
}
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
public final void setPrimaryString(String PrimaryString) {
|
2019-03-02 15:10:46 +01:00
|
|
|
this.PrimaryString = PrimaryString;
|
|
|
|
}
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
public final String getSecondaryString() {
|
2019-03-02 15:10:46 +01:00
|
|
|
return SecondaryString;
|
|
|
|
}
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
public final void setSecondaryString(String SecondaryString) {
|
2019-03-02 15:10:46 +01:00
|
|
|
this.SecondaryString = SecondaryString;
|
|
|
|
}
|
|
|
|
|
2019-05-19 20:35:18 +02:00
|
|
|
public final SentimentValueCache getCacheValue1() {
|
|
|
|
return cacheValue1;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void setCacheValue1(SentimentValueCache cacheValue1) {
|
|
|
|
this.cacheValue1 = cacheValue1;
|
|
|
|
}
|
2019-03-02 15:10:46 +01:00
|
|
|
|
2019-08-03 14:35:09 +02:00
|
|
|
public final SentimentValueCache getCacheValue2() {
|
|
|
|
return cacheValue2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void setCacheValue2(SentimentValueCache cacheValue2) {
|
|
|
|
this.cacheValue2 = cacheValue2;
|
|
|
|
}
|
|
|
|
|
2019-03-02 15:10:46 +01:00
|
|
|
}
|