4 ms·
Sure! This might be even lighter than what you're expecting. I'm not sure how to get HN to format my code correctly, so here's a gist. It has two functions, on
by jlowin 4y ago
Sure! This might be even lighter than what you're expecting.
I'm not sure how to get HN to format my code correctly, so here's a gist. It has two functions, one that generates a list of dicts with fake people data, and another that does sentiment analysis of tweets. Both are two lines of code. https://gist.github.com/jlowin/ae22fb7ac1788f066f809d2b8f5731ff https://gist.github.com/jlowin/ae22fb7ac1788f066f809d2b8f573...
You can get more complex than this but hopefully this shows the idea: define your inputs, define your outputs, give it a descriptive docstring (as descriptive as you want!), and call it.
- nico 4y agoOmg, this is genius! Huge step in the development of AI programming. It would be great if you could show off those examples at the top of the README file so people can see what it is right away. Thank you so much!