Wine API
My Python API is hosted as a free web-application at https://render.com and process text sent as POST requests. The submitted review text, is split into words and matched against the model binary matrix, and then the color is predicted. Any type of text that contains words characteristic for a wine review will be classified by color.
In the theory section the prediction model used is described.
POST-request sent to: https://eskils-wine.onrender.com/api
Input: JSON-string
{"text":"Your Review Text"}
Result: JSON-string
{"api":"wine-review predictions by wine.eskils.dev",
"matched_words":["matched word", "matched word"],
"predicted_color":"This Wine Is Most Likely #Predicted Color#",
"predicted_variety":"Most Likely a #Red, Rose, Sparkling, White# wine"}