Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGlossary ¶
func BuildGlossary(filePath string) (*Glossary, GlossaryStats, error)
BuildGlossary from a dataset of N-Triples todo: Should this method receive the filepath, a filehandler, or a tripleparser?
Types ¶
type Glossary ¶
Glossary holds an entire glossary.
func ReadFromFile ¶
ReadFromFile reads a binary file and de-serializes it into a glossary.
func (*Glossary) OutputStats ¶
func (glos *Glossary) OutputStats()
OutputStats of the glossary to stdout.
func (*Glossary) WriteToFile ¶
WriteToFile will serialize the glossary into a binary file.
type GlossaryStats ¶
type LabeledRecommendation ¶
type LabeledRecommendation struct { Property *schematree.IItem Content *Content Probability float64 }
LabeledRecommendation are recommendations with glossary information attached
func TranslateRecommendations ¶
func TranslateRecommendations(glossary *Glossary, language string, recommendations schematree.PropertyRecommendations) []LabeledRecommendation
TranslateRecommendations adds glossary information to recommendations from the schematree
Click to show internal directories.
Click to hide internal directories.