Skip to content

index out of range shield.(*RedisStore).ClassWordCounts #3

@thomasmodeneis

Description

@thomasmodeneis

Hi,

I'm getting this error quite often, any ideas on what may cause such behaviour ?

it seems to be caused after running shieldInstance.Classify(text)

panic: runtime error: index out of range

goroutine 90 [running]:
github.com/eaigner/shield.(*RedisStore).ClassWordCounts(0xc20806c000, 0xc20927a078, 0x2, 0xc20927e000, 0x2, 0x2, 0xc2092373b0, 0x0, 0x0)
    /opt/gocode/src/moody/Godeps/_workspace/src/github.com/eaigner/shield/redis.go:113 +0x85c
github.com/eaigner/shield.(*shield).Score(0xc20814d6c0, 0xc209fb0460, 0x1a, 0x0, 0x0, 0x0)
    /opt/gocode/src/moody/Godeps/_workspace/src/github.com/eaigner/shield/shield.go:92 +0x27e
github.com/eaigner/shield.(*shield).Classify(0xc20814d6c0, 0xc209fb0460, 0x1a, 0x0, 0x0, 0x0, 0x0)
    /opt/gocode/src/moody/Godeps/_workspace/src/github.com/eaigner/shield/shield.go:143 +0x7d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions