Documentation ¶
Index ¶
- Constants
- Variables
- type MDConfig
- func (c *MDConfig) AddLemmaAmbiguity(morphIDs []int)
- func (c *MDConfig) AddMapping(m *nlp.EMorpheme)
- func (c *MDConfig) AddSpellout(spellout string, paramFunc nlp.MDParam) bool
- func (c *MDConfig) Address(location []byte, sourceOffset int) (int, bool, bool)
- func (c *MDConfig) Alignment() int
- func (c *MDConfig) Assignment() uint16
- func (c *MDConfig) Attribute(source byte, nodeID int, attribute []byte, transitions []int) (att interface{}, exists bool, isGenerator bool)
- func (c *MDConfig) ChooseLemma(lemma string)
- func (c *MDConfig) Clear()
- func (c *MDConfig) Copy() Configuration
- func (c *MDConfig) CopyTo(target Configuration)
- func (c *MDConfig) Equal(otherEq util.Equaler) bool
- func (c *MDConfig) GenerateAddresses(nodeID int, location []byte) (nodeIDs []int)
- func (c *MDConfig) GetLastTransition() Transition
- func (c *MDConfig) GetSequence() ConfigurationSequence
- func (c *MDConfig) GetSource(location byte) Index
- func (c *MDConfig) Init(abstractLattice interface{})
- func (c *MDConfig) Len() int
- func (c *MDConfig) Pop()
- func (c *MDConfig) Previous() Configuration
- func (c *MDConfig) SetLastTransition(t Transition)
- func (c *MDConfig) SetPrevious(prev Configuration)
- func (c *MDConfig) State() byte
- func (c *MDConfig) String() string
- func (c *MDConfig) StringLatticeQueue() string
- func (c *MDConfig) Terminal() bool
- type MDOracle
- type MDTrans
- func (t *MDTrans) AddDefaultOracle()
- func (a *MDTrans) GetTransitions(from Configuration) (byte, []int)
- func (t *MDTrans) Name() string
- func (t *MDTrans) Oracle() Oracle
- func (t *MDTrans) Transition(from Configuration, transition Transition) Configuration
- func (t *MDTrans) TransitionTypes() []string
- func (t *MDTrans) YieldTransitions(c Configuration) (byte, chan int)
- type MDWBOracle
- type MDWBTrans
- func (t *MDWBTrans) AddDefaultOracle()
- func (a *MDWBTrans) GetTransitions(from Configuration) (byte, []int)
- func (t *MDWBTrans) Name() string
- func (t *MDWBTrans) Oracle() Oracle
- func (t *MDWBTrans) Transition(from Configuration, transition Transition) Configuration
- func (t *MDWBTrans) TransitionTypes() []string
- func (t *MDWBTrans) YieldTransitions(c Configuration) (byte, chan int)
- type MorphologicalDisambiguator
Constants ¶
View Source
const TSAllOut bool = false
Variables ¶
View Source
var ( UsePOP bool SwitchFormLemma bool POP_ONLY_VAR_LEN bool = true AFFIX_SIZE int = 10 )
View Source
var LEMMAS bool = true
Functions ¶
This section is empty.
Types ¶
type MDConfig ¶
type MDConfig struct { LatticeQueue Queue Lattices nlp.LatticeSentence Mappings nlp.Mappings Morphemes nlp.Morphemes Lemmas []int CurrentLatNode int InternalPrevious Configuration Last Transition ETokens *util.EnumSet Log bool POP Transition Transitions *util.EnumSet ParamFunc nlp.MDParam // contains filtered or unexported fields }
func (*MDConfig) AddLemmaAmbiguity ¶
func (*MDConfig) AddMapping ¶
func (*MDConfig) AddSpellout ¶
func (*MDConfig) Assignment ¶
func (*MDConfig) ChooseLemma ¶
func (*MDConfig) GenerateAddresses ¶
func (*MDConfig) GetLastTransition ¶
func (c *MDConfig) GetLastTransition() Transition
func (*MDConfig) GetSequence ¶
func (c *MDConfig) GetSequence() ConfigurationSequence
func (*MDConfig) SetLastTransition ¶
func (c *MDConfig) SetLastTransition(t Transition)
func (*MDConfig) SetPrevious ¶
func (c *MDConfig) SetPrevious(prev Configuration)
func (*MDConfig) StringLatticeQueue ¶
type MDOracle ¶
type MDOracle struct { Transitions *util.EnumSet ParamFunc MDParam UsePOP bool // contains filtered or unexported fields }
func (*MDOracle) CountMatchingTrans ¶
func (*MDOracle) Transition ¶
func (o *MDOracle) Transition(conf Configuration) Transition
type MDTrans ¶
type MDTrans struct { ParamFunc MDParam POP Transition Transitions *util.EnumSet Log bool UsePOP bool // contains filtered or unexported fields }
func (*MDTrans) AddDefaultOracle ¶
func (t *MDTrans) AddDefaultOracle()
func (*MDTrans) GetTransitions ¶
func (*MDTrans) Transition ¶
func (t *MDTrans) Transition(from Configuration, transition Transition) Configuration
func (*MDTrans) TransitionTypes ¶
func (*MDTrans) YieldTransitions ¶
type MDWBOracle ¶
type MDWBOracle struct { Transitions *util.EnumSet ParamFunc MDParam UsePOP bool // contains filtered or unexported fields }
func (*MDWBOracle) Name ¶
func (o *MDWBOracle) Name() string
func (*MDWBOracle) SetGold ¶
func (o *MDWBOracle) SetGold(g interface{})
func (*MDWBOracle) Transition ¶
func (o *MDWBOracle) Transition(conf Configuration) Transition
type MDWBTrans ¶
type MDWBTrans struct { ParamFunc MDParam POP Transition Transitions *util.EnumSet Log bool UsePOP bool // contains filtered or unexported fields }
func (*MDWBTrans) AddDefaultOracle ¶
func (t *MDWBTrans) AddDefaultOracle()
func (*MDWBTrans) GetTransitions ¶
func (*MDWBTrans) Transition ¶
func (t *MDWBTrans) Transition(from Configuration, transition Transition) Configuration
func (*MDWBTrans) TransitionTypes ¶
func (*MDWBTrans) YieldTransitions ¶
type MorphologicalDisambiguator ¶
type MorphologicalDisambiguator interface {
Parse(LatticeSentence) (Mappings, interface{})
}
Click to show internal directories.
Click to hide internal directories.