Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectedAux ¶
ExpectedAux is an auxiliary entity assertion in a test case.
type ExpectedRel ¶
type ExpectedRel struct {
From string `json:"from"`
To string `json:"to"`
Type string `json:"type"`
}
ExpectedRel is a relation assertion in a test case.
type GroundTruth ¶
GroundTruth is the root structure of ground_truth.json.
type ParserStats ¶
ParserStats holds accuracy metrics for one parser type.
type Results ¶
type Results struct {
ByParser map[string]*ParserStats
Overall ParserStats
}
Results holds accuracy results across all parser types.
type TestCase ¶
type TestCase struct {
ID string `json:"id"`
Parser string `json:"parser"`
InputFile string `json:"input_file"`
ExpectedName string `json:"expected_entity_name"`
ExpectedType string `json:"expected_entity_type"`
ExpectedObsSubset []string `json:"expected_obs_subset"`
ExpectedRels []ExpectedRel `json:"expected_rels"`
ExpectedAux []ExpectedAux `json:"expected_aux"`
}
TestCase is one entry in ground_truth.json.
Click to show internal directories.
Click to hide internal directories.