public
Last active

  • Download Gist
*sh1*
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
 
bash-3.2$ ./oauth-predict.sh movie_quotes/movie.txt "\"I want to drink rum all night in my boat\""
Unable to find a $JAVA_HOME at "/usr", continuing with system-provided Java...
{
"kind": "prediction#output",
"id": "movie_quotes/movie.txt",
"selfLink": "https://www.googleapis.com/prediction/v1.2/training/movie_quotes/movie.txt/predict",
"outputLabel": "Jack Sparrow",
"outputMulti": [
{
"label": "Tony Montana",
"score": 0.022444
},
{
"label": "Jack Sparrow",
"score": 0.417639
},
{
"label": "Patrick Bateman",
"score": 0.25665
},
{
"label": "Henry Hill",
"score": 0.095208
},
{
"label": "Mr. Pink",
"score": 0.079421
},
{
"label": "Mr. Brown",
"score": 0.007413
},
{
"label": "Mr. White",
"score": 0.05483
},
{
"label": "Mr. Blonde",
"score": 0.035682
},
{
"label": "Mr. Orange",
"score": 0.027745
},
{
"label": "Mr. Blue",
"score": 0.002968
}
]
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.