Documentation ¶
Index ¶
- Constants
- Variables
- func Conll2Graph(sent Sentence, eWord, ePOS, eWPOS, eRel, eMHost, eMSuffix *util.EnumSet) nlp.LabeledDependencyGraph
- func Conll2GraphCorpus(corpus []Sentence, eWord, ePOS, eWPOS, eRel, eMHost, eMSuffix *util.EnumSet) []interface{}
- func FormatFeatures(feat map[string]string) string
- func GetMorphProperties(node *transition.TaggedDepNode, eMHost, eMSuffix *util.EnumSet) string
- func Graph2ConllCorpus(corpus []interface{}, eMHost, eMSuffix *util.EnumSet) []interface{}
- func MorphGraph2ConllCorpus(corpus []interface{}) []interface{}
- func ParseInt(value string) (int, error)
- func ParseString(value string) string
- func Write(writer io.Writer, sents []interface{})
- func WriteFile(filename string, sents []interface{}) error
- type Features
- type Row
- type Sentence
- type Sentences
Constants ¶
View Source
const ( FIELD_SEPARATOR = '\t' NUM_FIELDS = 10 FEATURES_SEPARATOR = "|" FEATURE_SEPARATOR = "=" FEATURE_CONCAT_DELIM = "," )
Variables ¶
View Source
var ( WORD_TYPE = "form" IGNORE_LEMMA bool )
Functions ¶
func Conll2Graph ¶
func Conll2Graph(sent Sentence, eWord, ePOS, eWPOS, eRel, eMHost, eMSuffix *util.EnumSet) nlp.LabeledDependencyGraph
func Conll2GraphCorpus ¶
func FormatFeatures ¶
func GetMorphProperties ¶
func GetMorphProperties(node *transition.TaggedDepNode, eMHost, eMSuffix *util.EnumSet) string
func Graph2ConllCorpus ¶
func MorphGraph2ConllCorpus ¶
func MorphGraph2ConllCorpus(corpus []interface{}) []interface{}
func ParseString ¶
Types ¶
type Row ¶
type Row struct { ID int Form string Lemma string CPosTag string PosTag string Feats Features FeatStr string Head int DepRel string }
A Row is a single parsed row of a conll data set *Commented fields are not in use
type Sentence ¶
A Sentence is a map of Rows using their ids
func Graph2Conll ¶
func Graph2Conll(graph nlp.LabeledDependencyGraph, eMHost, eMSuffix *util.EnumSet) Sentence
func MorphGraph2Conll ¶
func MorphGraph2Conll(graph nlp.MorphDependencyGraph) Sentence
Click to show internal directories.
Click to hide internal directories.