Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func String2LemmiSet ¶
String2LemmiSet outputs a set of strings containing tokens of the input string.
Example ¶
package main import ( "fmt" "github.com/axamon/bow" ) func main() { lemmi := bow.String2LemmiSet("Salve, il cliente lamenta problemi. Il Cliente è infuriato") for _, lemma := range lemmi.Strings() { fmt.Println(lemma) } }
Output: infuriare cliente il lamentare problema salva
func String2Tokens ¶
String2Tokens receives a string and outputs a slice of lemmatized tokens.
Example ¶
package main import ( "fmt" "github.com/axamon/bow" ) func main() { tokens := bow.String2Tokens("Salve, il cliente lamenta problemi. Il Cliente è infuriato") for token := range tokens { fmt.Println(token) } }
Output: infuriare cliente il lamentare problema salva
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.