Python Forum
Converting text data into numeric to use SVM
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting text data into numeric to use SVM
#4
(Jan-18-2019, 01:28 PM)mukhan169 Wrote: May be I wasnt clear in my question. I have some data in string like "clutch repair", "Customer complaint noise replace the ball joint" they (Analysts) do the analysis on that to determine if that was correct or not. If it was correct then they will set a certain flag to True and if it wasnt then false. I have to run the data in machine learning and I have to convert "clutch repair" and "Customer complaint noise replace the ball joint" into int so I can run supervised machine learning on it as it only takes integer as parameters.


It doesn't make it any clearer. To you want replace specific text like "Customer complaint noise replace the ball joint" with some specific int like 42? And "clutch repair" with 43 or something?
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: Converting text data into numeric to use SVM - by perfringo - Jan-18-2019, 01:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert dataframe string column to numeric in Python darpInd 1 2,416 Mar-14-2020, 10:07 AM
Last Post: ndc85430
  Handling escape charters while converting data frame to JSON RahulShukla 0 1,768 Nov-11-2019, 11:22 AM
Last Post: RahulShukla

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020