Coder Social home page Coder Social logo

fate's People

Contributors

pteichman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fate's Issues

Index out of range error

Hi, I tried Fate, but I get a lot of "index out of range errors". Some sentences work well and I get an answer back, but many times the program just crash with this out of range error.
I've tried saving my text input file with different encodings (UTF-8 with and without BOM, Windows ANSI and UCS-2), but it doesn't seem to matter much. With UTF-8 I get good looking answers until I get Index out of range.
Is it a known problem?
Best regards, Andreas Jansson.

Sample conversation below:

[Fate says:] Vad är det?
> det är något man sjunger
panic: runtime error: index out of range

goroutine 1 [running]:
github.com/pteichman/fate.choice(0x116d6ce0, 0x5, 0x5, 0x729bd0, 0x117be3a8, 0x0
)
        C:/Users/AJ/go/src/github.com/pteichman/fate/model.go:314 +0x4d
github.com/pteichman/fate.(*Model).replyTokens(0x1175c0e0, 0x116d6ce0, 0x5, 0x5,
 0x729bd0, 0x117be3a8, 0x5, 0x8, 0xd63c1480)
        C:/Users/AJ/go/src/github.com/pteichman/fate/model.go:183 +0x4d
github.com/pteichman/fate.(*Model).Reply(0x1175c0e0, 0x116d6cc0, 0x1a, 0x0, 0x0)

        C:/Users/AJ/go/src/github.com/pteichman/fate/model.go:173 +0x14b
main.main()
        C:/Dev/fate-master/cmd/fate-console/main.go:66 +0x383
exit status 2

Reusing conversations for next startup – proper exit needed?

This is just a question. Can Fate can save the new words that are gained during a conversation?
I see no files getting updated during run but then again I probably don't exit Fate properly, due to the index out of bounds error (and I don't know what command to write to exit properly).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.