version0.3-beta, added … (one char 3 dots) as a punctuaton symbol to filter, and minNumUserInteractions=2

This commit is contained in:
arnaucode
2017-06-06 21:50:10 +02:00
parent 789235bcbb
commit a42b467385
4 changed files with 2 additions and 2 deletions

View File

@@ -18,8 +18,8 @@ func mapWords(text string, words map[string]int) map[string]int {
v = strings.Replace(v, "!", "", -1)
v = strings.Replace(v, "?", "", -1)
v = strings.Replace(v, "\n", "", -1)
v = strings.Replace(v, "…", "", -1)
if _, ok := words[v]; ok {
fmt.Println(v)
words[v] = words[v] + 1
} else {
words[v] = 1

BIN
argos

Binary file not shown.

Binary file not shown.

View File

@@ -10,7 +10,7 @@ import (
const version = "0.3-beta"
const minNumWords = 10
const minNumHashtag = 2
const minNumUserInteractions = 1
const minNumUserInteractions = 2
const iterationsCount = 3
func main() {