Documentation ¶
Index ¶
Constants ¶
View Source
const AsciiNumDiff = 48 // the difference between the ascii code of a number and the number. E. g. the ascii code of the number 3 is 51
View Source
const MaxRelatedWordsPerWord = 20
Variables ¶
View Source
var DataFolder string
Functions ¶
func HandleCombineImport ¶
func HandleCombineImport(w http.ResponseWriter, r *http.Request)
HandleCombineImport handles the /combine-import URL and does all the work It combines individual ngram files into one ngram file per letter using the Composer
func HandleImport ¶
func HandleImport(w http.ResponseWriter, r *http.Request)
HandleImport handles the /import URL
func HandleProcess ¶
func HandleProcess(w http.ResponseWriter, r *http.Request)
HandleProcess handles the /process URL and does all the work It takes all the imported ngrams and tries to guess:
- the number of syllables
- th pronunciation
Types ¶
type CombineImportData ¶
type CombineImportData struct {
CombinedFiles []CombinedFile `json:"combined_files"`
}
type CombinedFile ¶
type ImportData ¶
Click to show internal directories.
Click to hide internal directories.