utils

package
v0.0.0-...-f6fa928 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

utils.go Implements utilities for the primary clustering methods

Index

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 GetInfoCardText(url, selector string) string

func LowercaseWords

func LowercaseWords(words []string) []string

func RemoveDuplicates

func RemoveDuplicates(words []string) []string

func RemoveNonAlphaNumeric

func RemoveNonAlphaNumeric(s string) (str string, err error)

func RemoveStopwords

func RemoveStopwords(words []string) (s []string, err error)

func Scrape

func Scrape(url, selector string) map[string]string

func WordFrequency

func WordFrequency(words []string) (s map[string]int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL