Ask HN: How can I do plain language stock market history queries?

12 points by blickentwapft ↗ HN
I want to know things like “what are the 50 tech stocks that gained most in the last x weeks?”

Does anyone know anything in the web that does that?

5 comments

[ 2.2 ms ] story [ 11.7 ms ] thread
The "Text to SQL" parser bundled with Allen NLP may be a good starting place (https://demo.allennlp.org/atis-parser). The devil is in the details when you have to make assumptions on what the user wanted though. For instance, does "What was the worst week for tech stocks?" mean by market cap, largest relative losses, etc. If you can constrain the problem you may be able to get away with just named entity recognition.