Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sentence ¶
type Sentence struct { ID int `gorm:"primaryKey"` Chinese string Pinyin string English string Frequency float64 Level float64 }
Sentence represents Tatoeba sentence repository
type Token ¶
type Token struct { Entry string `gorm:"primaryKey"` Pinyin string English string Frequency float64 HanziLevel int VocabLevel int Sub []Token `gorm:"many2many:token_sub"` Sup []Token `gorm:"many2many:token_sup"` Variants []Token `gorm:"many2many:token_var"` }
Token represents Token frequency and parts table
type TokenSub ¶
type TokenSub struct { Parent string `gorm:"primaryKey"` Child string `gorm:"primaryKey"` ParentToken Token `gorm:"foreignKey:Parent"` ChildToken Token `gorm:"foreignKey:Child"` }
TokenSub is self-referential table for sub @internal
type TokenSup ¶
type TokenSup struct { Parent string `gorm:"primaryKey"` Child string `gorm:"primaryKey"` ParentToken Token `gorm:"foreignKey:Parent"` ChildToken Token `gorm:"foreignKey:Child"` }
TokenSup is self-referential table for sup @internal
Click to show internal directories.
Click to hide internal directories.