MCPcopy Create free account

hub / github.com/aaasen/kapok / functions

Functions30 in github.com/aaasen/kapok

↓ 11 callersFunctionisTitle
isTitle returns whether or not the given byte array looks like a valid title for a Wikipedia article.s It is based off of http://www.mediawiki.org/wik
parse/page.go:108
↓ 5 callersFunctionSyllableCount
SyllableCount returns the number of syllables in a given string. Dipthongs are not taken into account.
stats/readability.go:33
↓ 3 callersMethodGetID
(title string, category bool)
generate/gen_csv.go:33
↓ 3 callersFunctionwriteNode
(out io.Writer, id int64, title string, label string)
generate/gen_csv.go:80
↓ 2 callersMethodGeneratePage
(page *parse.Page, nodes io.Writer, rels io.Writer)
generate/gen_csv.go:50
↓ 2 callersFunctionNewCSVGenerator
()
generate/gen_csv.go:15
↓ 2 callersFunctionSentences
Sentences returns a slice of the sentences in a given string.
stats/readability.go:21
↓ 2 callersFunctionWords
Words returns a slice of the words in a given string.
stats/readability.go:16
↓ 2 callersFunctionwriteRel
(out io.Writer, origin int64, dest int64, rel string)
generate/gen_csv.go:86
↓ 1 callersFunctionFleschKincaidEase
FleschKincaidEase computes the ease of reading a given text. The algorithm is explained in detail here: http://en.wikipedia.org/wiki/Flesch%E2%80%93Ki
stats/readability.go:47
↓ 1 callersFunctionNewIDGenerator
()
generate/gen_csv.go:26
↓ 1 callersFunctionNewPageFromXML
NewPageFromXML creates a Page object from XML.
parse/page.go:24
↓ 1 callersMethodParse
Parse parses given reader as XML and dumps Page objects into the given channel. Parse will fill the Page's Title, Links, and Categories. When the rea
parse/parse.go:28
↓ 1 callersFunctiongenerateByPath
(inPath, nodesPath, relsPath string, maxPages int)
main.go:59
↓ 1 callersMethodgetLinks
getLinks populates a Page's Links and Categories fields by parsing the given XML. It will only take into account internal links, piped links, and cate
parse/page.go:41
↓ 1 callersMethodgetPages
GetPages parses a complete XML page into a page object.
parse/parse.go:83
↓ 1 callersMethodgetRawPages
getRawPages creates full pages from a reader that can then be parsed with an XML parser.
parse/parse.go:36
↓ 1 callersMethodgetTitle
getTitle parses the title from an XML representation of a Wikipedia page. In the event of an error or malformed XML, it will return ErrTitleNotFound.
parse/page.go:82
↓ 1 callersFunctionremoveAllBytes
(source []byte, targets []byte)
generate/gen_csv.go:90
FunctionGenerate
(in io.Reader, nodes io.Writer, rels io.Writer, maxPages int)
generate/generate.go:11
FunctionNewParser
()
parse/parse.go:16
MethodString
()
parse/page.go:19
FunctionTestFleschKincaidEase
(t *testing.T)
stats/readability_test.go:49
FunctionTestGeneratePage
(t *testing.T)
generate/gen_csv_test.go:10
FunctionTestIsTitle
(t *testing.T)
parse/page_test.go:8
FunctionTestSentences
(t *testing.T)
stats/readability_test.go:16
FunctionTestSyllables
(t *testing.T)
stats/readability_test.go:34
FunctionTestWordCount
(t *testing.T)
stats/readability_test.go:8
Functionmain
()
main.go:15
FunctionremoveEscapedRegions
removeEscapedRegions removes all markup in between the <nowiki> tags. See http://www.mediawiki.org/wiki/Help:Formatting
parse/page.go:116