jcbrockschmidt / bigram_quoter Goto Github PK
View Code? Open in Web Editor NEWAn artificial intelligence that generates fake quotes using a bigram model and example text.
License: GNU General Public License v2.0
An artificial intelligence that generates fake quotes using a bigram model and example text.
License: GNU General Public License v2.0
As such :
enum item_type {
MARKER, WORD
};
union item_value {
Markers marker;
std::string word;
};
struct item {
enum item_type type;
union item_value value;
};
Used as such:
/* When writing */
my_item.type = WORD; my_item.value.word = std::string("over9k");
/* When reading */
if (my_item.type == WORD)
processTheWord(my_item.value.word);
This (imo) is more readable, is clearer, and would allow for removing
the typecasts that litter the code when you need to cast between the
current ParserItem_marker and ParserItem_word structures.
EDIT: Add syntax highlighting. Pretty colors are a must.
See commit 5239527 and the associated comment
I really don't like having data being saved in a binary file format. Binary
files are hard for humans to read and write, and depend on the endianness of
the saving CPU for what the data values actually mean. Any benefits you get
from saving in a binary format (whether 'speed' or 'simplicity') are outweighed
by the fact that humans are unable to read and write it with standard tools.
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.