Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDataset ¶
Types ¶
type GSM8KExample ¶
func LoadGSM8K ¶
func LoadGSM8K() ([]GSM8KExample, error)
type HotPotQAExample ¶
type HotPotQAExample struct {
ID string `json:"_id"`
SupportingFacts [][]interface{} `json:"supporting_facts"`
Context [][]interface{} `json:"context"`
Question string `json:"question"`
Answer string `json:"answer"`
Type string `json:"type"`
Level string `json:"level"`
}
func LoadHotpotQA ¶
func LoadHotpotQA() ([]HotPotQAExample, error)
type SimpleDataset ¶
type SimpleDataset struct {
// contains filtered or unexported fields
}
SimpleDataset implements core.Dataset interface for testing and examples.
func NewSimpleDataset ¶
func NewSimpleDataset(examples []core.Example) *SimpleDataset
NewSimpleDataset creates a new SimpleDataset with the given examples.
func (*SimpleDataset) Next ¶
func (sd *SimpleDataset) Next() (core.Example, bool)
Next returns the next example in the dataset.
func (*SimpleDataset) Reset ¶
func (sd *SimpleDataset) Reset()
Reset resets the dataset iterator to the beginning.
Click to show internal directories.
Click to hide internal directories.