Documentation ¶
Index ¶
- Constants
- Variables
- func Form(m *EMorpheme) string
- func Form_Lemma_POS_Prop(m *EMorpheme) string
- func Form_POS(m *EMorpheme) string
- func Form_POS_Prop(m *EMorpheme) string
- func Form_Prop(m *EMorpheme) string
- func Funcs_All_WLemma(m *EMorpheme) string
- func Funcs_Lemma_Main_POS(m *EMorpheme) string
- func Funcs_Main_POS(m *EMorpheme) string
- func Funcs_Main_POS_Both_Prop(m *EMorpheme) string
- func Funcs_Main_POS_Both_Prop_Clitic(m *EMorpheme) string
- func Funcs_Main_POS_Both_Prop_WLemma(m *EMorpheme) string
- func Funcs_Main_POS_No_Prop(m *EMorpheme) string
- func Funcs_Main_POS_Prop(m *EMorpheme) string
- func InitOpenParamFamily(pType string)
- func InitOpenParamTypes(Main_POS_Types []string)
- func Lemma(m *EMorpheme) string
- func Lemma_POS_Prop(m *EMorpheme) string
- func POS(m *EMorpheme) string
- func POS_Prop(m *EMorpheme) string
- func ProjectSpellout(s Spellout, f MDParam) string
- type AmbLemma
- type AmbMorphs
- type BasicETaggedSentence
- type BasicMorphemes
- type BasicSentence
- type BasicTaggedSentence
- type DepArc
- type DepNode
- type DepRel
- type DependencyGraph
- type DisAmbLemma
- type DisAmbMorphs
- type EMorpheme
- type EnumSentence
- type EnumTaggedSentence
- type EnumTaggedToken
- type EnumToken
- type Labeled
- type LabeledDepArc
- type LabeledDependencyGraph
- type Lattice
- func (l *Lattice) Add(morphs BasicMorphemes, start, end, numToken int)
- func (l *Lattice) AddAnalysis(prefix BasicMorphemes, hosts []BasicMorphemes, numToken int)
- func (l *Lattice) AllFusedFrom(from int) []string
- func (l *Lattice) Bottom() int
- func (l *Lattice) BridgeMissingMorphemes()
- func (l *Lattice) BumpAll(diff int)
- func (l *Lattice) BumpTop(from, to int, upTo int)
- func (l *Lattice) GenNexts(panicMismatch bool)
- func (l *Lattice) GenSpellouts()
- func (l *Lattice) GenToken()
- func (l *Lattice) GetDirectedEdge(i int) graph.DirectedEdge
- func (l *Lattice) GetEdge(i int) graph.Edge
- func (l *Lattice) GetEdges() []int
- func (l *Lattice) GetVertex(i int) graph.Vertex
- func (l *Lattice) GetVertices() []int
- func (l *Lattice) Inf(i, j int) int
- func (l *Lattice) InfuseMorph(morph *EMorpheme, from, to int, genSpellout bool)
- func (l *Lattice) IsVarLen() bool
- func (l *Lattice) MaxPathLen() int
- func (l *Lattice) MorphsOnGold(other *Lattice) Morphemes
- func (l *Lattice) NumberOfEdges() int
- func (l *Lattice) NumberOfVertices() int
- func (l *Lattice) Optimize()
- func (l *Lattice) Path(i int) Spellout
- func (l *Lattice) Prefixes(n int) []interface{}
- func (l *Lattice) Signature() string
- func (l *Lattice) SortMorphemes()
- func (l *Lattice) Suffixes(n int) []interface{}
- func (l *Lattice) Sup(i, j int) int
- func (l *Lattice) Top() int
- func (l *Lattice) UnionPath(other *Lattice)
- func (l *Lattice) YieldPaths() chan Path
- type LatticeSentence
- func (ls LatticeSentence) Equal(otherEq util.Equaler) bool
- func (ls LatticeSentence) FindFixDisHost(gold Mappings, pf MDParam) []*UpdateMorph
- func (ls LatticeSentence) FindGoldAmbMorphs(gold Mappings, pf MDParam) AmbMorphs
- func (ls LatticeSentence) FindGoldDisAmbMorphs(gold Mappings, mdParam MDParam) DisAmbMorphs
- func (ls LatticeSentence) TaggedSentence() TaggedSentence
- func (ls LatticeSentence) Tokens() []string
- type MDParam
- type Mapping
- type Mappings
- type MorphDependencyGraph
- type Morpheme
- type Morphemes
- type Path
- type Sentence
- type Spellout
- type Spellouts
- func (s Spellouts) Find(other Spellout) (int, bool)
- func (s Spellouts) Intersect(other Spellouts, paramFunc string, startNode int) Spellouts
- func (s Spellouts) Len() int
- func (s Spellouts) Less(i, j int) bool
- func (s *Spellouts) Merge(new Spellout, startNode int)
- func (s Spellouts) Swap(i, j int)
- func (s Spellouts) UniqueMorphemes() Morphemes
- type TaggedSentence
- type TaggedToken
- type Token
- type UpdateMorph
Constants ¶
View Source
const ( ROOT_TOKEN = "ROOT" ROOT_LABEL = "ROOT" )
View Source
const (
SEPARATOR = ";"
)
Variables ¶
View Source
var ( Main_POS map[string]bool MDParams map[string]MDParam = map[string]MDParam{ "Form": Form, "Form_Prop": Form_Prop, "POS": POS, "POS_Prop": POS_Prop, "Form_POS_Prop": Form_POS_Prop, "Form_Lemma_POS_Prop": Form_Lemma_POS_Prop, "Form_POS": Form_POS, "Funcs_Main_POS_Both_Prop": Funcs_Main_POS_Both_Prop, "Funcs_Main_POS_Both_Prop_Clitic": Funcs_Main_POS_Both_Prop_Clitic, "Funcs_Main_POS_Both_Prop_WLemma": Funcs_Main_POS_Both_Prop_WLemma, "Funcs_Main_POS": Funcs_Main_POS, "Funcs_Main_POS_Prop": Funcs_Main_POS_Prop, } AllParamFuncNames string )
Functions ¶
func Form_Lemma_POS_Prop ¶
func Form_POS_Prop ¶
func Funcs_All_WLemma ¶
func Funcs_Lemma_Main_POS ¶
func Funcs_Main_POS ¶
func Funcs_Main_POS_Both_Prop_Clitic ¶ added in v1.2.0
func Funcs_Main_POS_No_Prop ¶
func Funcs_Main_POS_Prop ¶
func InitOpenParamFamily ¶
func InitOpenParamFamily(pType string)
func InitOpenParamTypes ¶
func InitOpenParamTypes(Main_POS_Types []string)
func Lemma_POS_Prop ¶
func ProjectSpellout ¶
Types ¶
type BasicETaggedSentence ¶
type BasicETaggedSentence []EnumTaggedToken
func (BasicETaggedSentence) EnumTaggedTokens ¶
func (b BasicETaggedSentence) EnumTaggedTokens() []EnumTaggedToken
func (BasicETaggedSentence) TaggedTokens ¶
func (b BasicETaggedSentence) TaggedTokens() []TaggedToken
func (BasicETaggedSentence) Tokens ¶
func (b BasicETaggedSentence) Tokens() []string
type BasicMorphemes ¶
type BasicMorphemes []*Morpheme
func (*BasicMorphemes) Equal ¶
func (m *BasicMorphemes) Equal(others BasicMorphemes) bool
func (*BasicMorphemes) Union ¶
func (m *BasicMorphemes) Union(others BasicMorphemes)
type BasicSentence ¶
type BasicSentence []Token
func (BasicSentence) Equal ¶
func (b BasicSentence) Equal(other interface{}) bool
func (BasicSentence) Joined ¶
func (b BasicSentence) Joined(sep string) string
func (BasicSentence) Tokens ¶
func (b BasicSentence) Tokens() []string
type BasicTaggedSentence ¶
type BasicTaggedSentence []TaggedToken
func (BasicTaggedSentence) TaggedTokens ¶
func (b BasicTaggedSentence) TaggedTokens() []TaggedToken
func (BasicTaggedSentence) Tokens ¶
func (b BasicTaggedSentence) Tokens() []string
type DepArc ¶
type DepArc interface { graph.DirectedEdge GetModifier() int GetHead() int String() string }
type DependencyGraph ¶
type DisAmbMorphs ¶
type DisAmbMorphs []*DisAmbLemma
type EMorpheme ¶
type EMorpheme struct { Morpheme EForm, ELemma int EFCPOS, EPOS int EFeatures int EMHost, EMSuffix int }
func NewRootMorpheme ¶
func NewRootMorpheme() *EMorpheme
type EnumSentence ¶
type EnumTaggedSentence ¶
type EnumTaggedSentence interface { TaggedSentence EnumTaggedTokens() []EnumTaggedToken }
type EnumTaggedToken ¶
type EnumTaggedToken struct { TaggedToken EToken, ELemma, EPOS, ETPOS, EMHost, EMSuffix int }
type Labeled ¶
type Labeled interface {
GetLabeledArc(int) LabeledDepArc
}
type LabeledDepArc ¶
type LabeledDependencyGraph ¶
type LabeledDependencyGraph interface { DependencyGraph Labeled }
type Lattice ¶
type Lattice struct { Token Token Morphemes Morphemes Spellouts Spellouts Next map[int][]int BottomId, TopId int }
func NewRootLattice ¶
func NewRootLattice() Lattice
func (*Lattice) Add ¶
func (l *Lattice) Add(morphs BasicMorphemes, start, end, numToken int)
func (*Lattice) AddAnalysis ¶
func (l *Lattice) AddAnalysis(prefix BasicMorphemes, hosts []BasicMorphemes, numToken int)
func (*Lattice) AllFusedFrom ¶
func (*Lattice) BridgeMissingMorphemes ¶
func (l *Lattice) BridgeMissingMorphemes()
func (*Lattice) GenSpellouts ¶
func (l *Lattice) GenSpellouts()
func (*Lattice) GetDirectedEdge ¶
func (l *Lattice) GetDirectedEdge(i int) graph.DirectedEdge
func (*Lattice) GetVertices ¶
func (*Lattice) InfuseMorph ¶
func (*Lattice) MaxPathLen ¶
func (*Lattice) MorphsOnGold ¶
func (*Lattice) NumberOfEdges ¶
func (*Lattice) NumberOfVertices ¶
func (*Lattice) SortMorphemes ¶
func (l *Lattice) SortMorphemes()
func (*Lattice) YieldPaths ¶
type LatticeSentence ¶
type LatticeSentence []Lattice
func (LatticeSentence) FindFixDisHost ¶
func (ls LatticeSentence) FindFixDisHost(gold Mappings, pf MDParam) []*UpdateMorph
func (LatticeSentence) FindGoldAmbMorphs ¶
func (ls LatticeSentence) FindGoldAmbMorphs(gold Mappings, pf MDParam) AmbMorphs
func (LatticeSentence) FindGoldDisAmbMorphs ¶
func (ls LatticeSentence) FindGoldDisAmbMorphs(gold Mappings, mdParam MDParam) DisAmbMorphs
func (LatticeSentence) TaggedSentence ¶ added in v1.1.0
func (ls LatticeSentence) TaggedSentence() TaggedSentence
func (LatticeSentence) Tokens ¶
func (ls LatticeSentence) Tokens() []string
type MorphDependencyGraph ¶
type MorphDependencyGraph interface { LabeledDependencyGraph GetMappings() Mappings GetMorpheme(int) *EMorpheme }
type Morpheme ¶
type Morpheme struct { graph.BasicDirectedEdge Form string Lemma string CPOS string POS string Features map[string]string TokenID int FeatureStr string }
func (*Morpheme) StringNoLemma ¶
type Morphemes ¶
type Morphemes []*EMorpheme
func (Morphemes) AsBasic ¶
func (m Morphemes) AsBasic() BasicMorphemes
func (Morphemes) Standalone ¶
func (m Morphemes) Standalone() BasicMorphemes
type Spellouts ¶
type Spellouts []Spellout
func (Spellouts) UniqueMorphemes ¶
type TaggedSentence ¶
type TaggedSentence interface { Sentence TaggedTokens() []TaggedToken }
type TaggedToken ¶
type TaggedToken struct {
Token, Lemma, POS string
}
type UpdateMorph ¶
Click to show internal directories.
Click to hide internal directories.