We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c0038 commit a21d7d6Copy full SHA for a21d7d6
1 file changed
datasets/dataset_xla.go
@@ -70,9 +70,10 @@ func (s *SemanticSimilarityDataset) Validate() error {
70
71
// SemanticSimilarityExample is a single example for the semantic similarity dataset.
72
type SemanticSimilarityExample struct {
73
- Sentence1 string `json:"sentence1"`
74
- Sentence2 string `json:"sentence2"`
75
- Score float32 `json:"score"`
+ Sentence1 string `json:"sentence1"`
+ Sentence2 string `json:"sentence2"`
+ Score float32 `json:"score"`
76
+ Data map[string]any // to store any additional data for the example. Not used by the dataset.
77
}
78
79
type ExamplePreprocessFunc func([]SemanticSimilarityExample) ([]SemanticSimilarityExample, error)
0 commit comments