Browse Source

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

master
arnaucode 7 years ago
parent
commit
a42b467385
4 changed files with 2 additions and 2 deletions
  1. +1
    -1
      analyzeWords.go
  2. BIN
      argos
  3. BIN
      build/argos
  4. +1
    -1
      main.go

+ 1
- 1
analyzeWords.go

@ -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


BIN
build/argos


+ 1
- 1
main.go

@ -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() {

Loading…
Cancel
Save