mirror of
https://github.com/arnaucube/argos.git
synced 2026-02-07 02:56:41 +01:00
version0.3-beta, added … (one char 3 dots) as a punctuaton symbol to filter, and minNumUserInteractions=2
This commit is contained in:
@@ -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, "?", "", -1)
|
v = strings.Replace(v, "?", "", -1)
|
||||||
v = strings.Replace(v, "\n", "", -1)
|
v = strings.Replace(v, "\n", "", -1)
|
||||||
|
v = strings.Replace(v, "…", "", -1)
|
||||||
if _, ok := words[v]; ok {
|
if _, ok := words[v]; ok {
|
||||||
fmt.Println(v)
|
|
||||||
words[v] = words[v] + 1
|
words[v] = words[v] + 1
|
||||||
} else {
|
} else {
|
||||||
words[v] = 1
|
words[v] = 1
|
||||||
|
|||||||
BIN
build/argos
BIN
build/argos
Binary file not shown.
2
main.go
2
main.go
@@ -10,7 +10,7 @@ import (
|
|||||||
const version = "0.3-beta"
|
const version = "0.3-beta"
|
||||||
const minNumWords = 10
|
const minNumWords = 10
|
||||||
const minNumHashtag = 2
|
const minNumHashtag = 2
|
||||||
const minNumUserInteractions = 1
|
const minNumUserInteractions = 2
|
||||||
const iterationsCount = 3
|
const iterationsCount = 3
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user