pteichman / fate Goto Github PK
View Code? Open in Web Editor NEWngram text synthesis with delusions of grandeur
License: MIT License
ngram text synthesis with delusions of grandeur
License: MIT License
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
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.