data

package
v0.0.0-...-0117f21 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(databaseName string, create bool)

func ExtractNewsLine

func ExtractNewsLine(content string) []string

func GetCountOfTitles

func GetCountOfTitles() int

func GetIdsOfTrigram

func GetIdsOfTrigram(trigram string) []int

returns all news-ids of a trigram

func GetNewsTitle

func GetNewsTitle(id int) string

returns news-title with this id

func GetTrigramsByTitle

func GetTrigramsByTitle(title string) []ai.Vector_element

func InitializeDatabase

func InitializeDatabase(user string, passwd string)

func ParseFile

func ParseFile(filename string)

reads a file and stores trigrams in database

func PostNews

func PostNews(title string) int

saves a new news title, returns id

func PutTrigram

func PutTrigram(trigram string, id int)

saves trigram with this id

func ReadFile

func ReadFile(fileName string) string

func RegSplit

func RegSplit(text string, delimeter string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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