Documentation ¶
Overview ¶
utils.go Implements utilities for the primary clustering methods
Index ¶
- Constants
- func GetInfoCardText(url, selector string) string
- func LowercaseWords(words []string) []string
- func RemoveDuplicates(words []string) []string
- func RemoveNonAlphaNumeric(s string) (str string, err error)
- func RemoveStopwords(words []string) (s []string, err error)
- func Scrape(url, selector string) map[string]string
- func WordFrequency(words []string) (s map[string]int)
Constants ¶
View Source
const InfoCardSelector string = ".infobox"
View Source
const SearchURLPrefix string = "http://en.wikipedia.org/wiki/"
View Source
const Selector string = "#mw-content-text p a"
Variables ¶
This section is empty.
Functions ¶
func GetInfoCardText ¶
func LowercaseWords ¶
func RemoveDuplicates ¶
func RemoveNonAlphaNumeric ¶
func RemoveStopwords ¶
func WordFrequency ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.