Jcharis / Machine-Learning-Web-Apps

Building and Embedding Machine Learning Model into a Web App(With Flask,Streamlit,etc)
564 stars 569 forks source link

ValueError: could not convert string to float: 'The grace of our Lord Jesus Christ be with you all. Amen.' #2

Open Thrqureshi opened 5 years ago

Thrqureshi commented 5 years ago

Hi There

I am not an expert in python when i try to run your "Semi-Automated-Machine-Learning-Flask-App(Drag-&-Drop-Dataset)"

I am getting the following error

ValueError: could not convert string to float: 'The grace of our Lord Jesus Christ be with you all. Amen.'

could you please let me know how to fix this issue

Jcharis commented 5 years ago

@Thrqureshi , you will have to vectorize the text data either using countvectorizer or tfidfvectorizer to convert the text into vectors/numbers for the ML model to understand.