Commit 5d43f104 authored by Milan Bartky's avatar Milan Bartky

Added golang version

parent e9f873b9
......@@ -130,7 +130,7 @@ NormalizeHelper::advancedCleanUp($generated);
$final = "";
$length = 4;
if (isset($_GET["w"]) && !Helper::includes($text, $_GET["w"]))
if (isset($_GET["w"]) && Helper::includes($text, $_GET["w"]))
{
/*
* For the amount of lines we want
......
This diff is collapsed.
package main
import (
"github.com/aonemd/margopher"
"fmt"
"io/ioutil"
)
func main() {
//Load Training data from file
b, err := ioutil.ReadFile("chan-training.txt")
if err != nil {
fmt.Print(err)
}
//Bytes to string
text := string(b)
m := margopher.New()
fmt.Println(m.ReadText(text))
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment