Google cloud ML with Scikit-Learn raises: 'dict' object has no attribute 'lower'

前端 未结 1 1841
南笙
南笙 2021-01-22 03:47

I used the following tutorial to use my Scikit-learn sentiment-analysis model in Google Cloud: https://cloud.google.com/ml-engine/docs/scikit/quickstart

My model defined

相关标签:
1条回答
  • 2021-01-22 04:41

    As discussed in the comments, the file which contains the JSON_INSTANCES needs to have a single JSON on each line.

    In this case it would be

    "the quick brown fox"
    "another test"
    

    which may look weird but it is a valid JSON.

    0 讨论(0)
提交回复
热议问题