|
|
|
@ -2372,6 +2372,7 @@ public class SysTrainingScore {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void calculateDataScore() {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
dataCollectionScore=0;
|
|
|
|
|
textSegmentationScore=0;
|
|
|
|
|
partofspeechTaggingScore=0;
|
|
|
|
@ -2399,6 +2400,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 2 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
dataCollectionProgress=formattedResult;
|
|
|
|
|
dataCollectionTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2418,6 +2420,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 3 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
textSegmentationProgress=formattedResult;
|
|
|
|
|
textSegmentationTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2437,6 +2440,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 3 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
partofspeechTaggingProgress=formattedResult;
|
|
|
|
|
partofspeechTaggingTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2453,6 +2457,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 2 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
categoryManagementProgress=formattedResult;
|
|
|
|
|
categoryManagementTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2476,6 +2481,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 4 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
textClassificationProgress=formattedResult;
|
|
|
|
|
textClassificationTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2499,6 +2505,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 4 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
textSummarizationProgress=formattedResult;
|
|
|
|
|
textSummarizationTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2522,6 +2529,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 4 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
similarityCalculationProgress=formattedResult;
|
|
|
|
|
similarityCalculationTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2545,6 +2553,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 4 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
sentimentAnalysisProgress=formattedResult;
|
|
|
|
|
sentimentAnalysisTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2568,6 +2577,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 4 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
dataVisualizationProgress=formattedResult;
|
|
|
|
|
dataVisualizationTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flag=0;
|
|
|
|
@ -2587,6 +2597,7 @@ public class SysTrainingScore {
|
|
|
|
|
double result = (double) flag / 3 * 100;
|
|
|
|
|
String formattedResult = df.format(result / 100);
|
|
|
|
|
reportSubmissionProgress=formattedResult;
|
|
|
|
|
reportSubmissionTime=date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
trainingOperationScore=dataCollectionScore+textSegmentationScore+partofspeechTaggingScore+categoryManagementScore+textClassificationScore
|
|
|
|
|