Class EvalCreateParams.TestingCriterion.TextSimilarity
- 
                    
                    - All Implemented Interfaces:
 
 public final class EvalCreateParams.TestingCriterion.TextSimilarityA TextSimilarityGrader object which grades text based on similarity metrics. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classEvalCreateParams.TestingCriterion.TextSimilarity.BuilderA builder for TextSimilarity. 
 - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        toTextSimilarityGraderfinal TextSimilarityGrader toTextSimilarityGrader() 
 - 
                                        evaluationMetricfinal TextSimilarityGrader.EvaluationMetric evaluationMetric() The evaluation metric to use. One of cosine,fuzzy_match,bleu,gleu,meteor,rouge_1,rouge_2,rouge_3,rouge_4,rouge_5, orrouge_l.
 - 
                                        _typefinal JsonValue _type() The type of grader. Expected to always return the following: JsonValue.from("text_similarity")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value). 
 - 
                                        passThresholdfinal Double passThreshold() The threshold for the score. 
 - 
                                        _evaluationMetricfinal JsonField<TextSimilarityGrader.EvaluationMetric> _evaluationMetric() Returns the raw JSON value of evaluationMetric. Unlike evaluationMetric, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputfinal JsonField<String> _input() Returns the raw JSON value of input. Unlike input, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _namefinal JsonField<String> _name() Returns the raw JSON value of name. Unlike name, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _referencefinal JsonField<String> _reference() Returns the raw JSON value of reference. Unlike reference, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _passThresholdfinal JsonField<Double> _passThreshold() Returns the raw JSON value of passThreshold. Unlike passThreshold, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal EvalCreateParams.TestingCriterion.TextSimilarity.Builder toBuilder() 
 - 
                                        validatefinal EvalCreateParams.TestingCriterion.TextSimilarity validate() 
 - 
                                        builderfinal static EvalCreateParams.TestingCriterion.TextSimilarity.Builder builder() Returns a mutable builder for constructing an instance of TextSimilarity. The following fields are required: .evaluationMetric() .input() .name() .reference() .passThreshold()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-