forked from advancedlogic/go-freeling
/
gofreeling.go
32 lines (26 loc) · 847 Bytes
/
gofreeling.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main
import (
. "github.com/advancedlogic/go-freeling/engine"
. "github.com/advancedlogic/go-freeling/net"
. "github.com/advancedlogic/go-freeling/terminal"
)
var logo = `
____ _____ _ _
/ ___| ___ | ___| __ ___ ___| (_)_ __ __ _
| | _ / _ \ _____| |_ | '__/ _ \/ _ \ | | '_ \ / _ |
| |_| | (_) |_____| _|| | | __/ __/ | | | | | (_| |
\____|\___/ |_| |_| \___|\___|_|_|_| |_|\__, |
|___/
AdvancedLogic 2015 - v.0.1
`
func init() {
Infof("Go - Freeling - Natural Language Processing for Golang\n")
Infof("This is a partial port of Freeling 3.1\n")
}
func main() {
context := NewContext("conf/gofreeling.toml")
context.InitNLP()
println(logo)
httpServer := NewHttpServer(context)
httpServer.Listen()
}