SVM is applicable only for numeric data or can also be for textual data?

Asked by Last Modified  

11 Answers

Learn Python

Follow 0
Answer

Please enter your answer

SVM can work with textual data also. However you have to train the SVM to classify the text data. It is a usual practice to create a document-term matrix from the text that you have, to make SVM work easily on the data.
Comments

Tutor

SVMs work with numerical data only - needs to be a vector input. But you can transform textual data into word vectors so that we can use SVM on textual data. Some of the methods are TFIDF, word2Vec, GloVe and FastText.
Comments

I think it is applicable for numeric data since it is based on categorized prediction.
Comments

Computer Trainer

SVM is an supervised learning algorithm or concept used for classification and regression analysis. The implementation can be done for any numeric data, text data, symbols or images. The logic is to find the implementation of hyper plane for separation and the support vectors.
Comments

Any learning algorithm for that matter does not work Directly on text. It needs to be converted to a structured matrix before applying algorithms.The methods involve - 1. Extensive cleaning of the data - simple regular expressions to building complex CFGs 2. Converting the unstructured data to structured...
read more
Any learning algorithm for that matter does not work Directly on text. It needs to be converted to a structured matrix before applying algorithms.The methods involve - 1. Extensive cleaning of the data - simple regular expressions to building complex CFGs 2. Converting the unstructured data to structured data using Vector Space models - Vectorizers, LSA, W2V etc. read less
Comments

Certified Professional Trainer @ Magnitia

It is especially used for Mathematical operations with geometry.
Comments

Tutor

First of all, not sure what you mean by textual data. Do you mean text classification or categorical variable. Anyway, SVM works well with both. I have used it for text classification also, and found it to consistently provide the very high rate of accurate classifiers. Using the Sequential Minimal Optimization...
read more
First of all, not sure what you mean by textual data. Do you mean text classification or categorical variable. Anyway, SVM works well with both. I have used it for text classification also, and found it to consistently provide the very high rate of accurate classifiers. Using the Sequential Minimal Optimization (SMO) methods, learning the SVM model is very fast. read less
Comments

Text classification also assists as a way of remembering and differentiating the types of data, making. Similarly SVM applicable to data points with nonlinear decision surfaces by engaging a system identified.
Comments

Tutor

Yes, you can use textual data in SVM, but you need to turn the text content into numerical feature vectors e.g. using bag of words or occurrence of frequencies. http://scikit-learn.org/stable/tutorial/text_analytics/working_with_text_data.html
Comments

Machine Learning Architect with 13 Yrs of Exp in IT industry, Computer Sci Engg, NIT, Allahabad

Python Rs. 8k it Indies project on Python as well.
Comments

View 9 more Answers

Related Questions

Between Java and Python, which one is better to learn first and why?
Both the development programs come with their strong suits. While Java allows you to enjoy the cross-platform support, Python helps you execute on at least ten different operating systems. It would help...
Priyanka
0 0
5

is there an best online exam simulator for PCAP 31-02 python exam ?

You can try Python exam in cisco net grade, it 's free and help in practice and if you clear this exam, you will get 50% off PCAP 31-02 exam coupon on your registered email id.
Rajgun
0 0
5
What are the best websites to learn Python from beginner level?
There are tonnes of Python learning platforms for free, and some good online couse with low cost < $10. Kindly check Udemy as well. But my recomandation is go with online instructor based class which...
Tushar
0 0
9
Which is better, PHP or Python? Why?
Python . Simple syntax,More readable,General purpose programming language
Kartheek
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Python Programming or R- Programming
Most of the students usually ask me this question before they join the classes, whether to go with Python or R. Here is my short analysis on this very common topic. If you have interest/or having a job...

Python Script for random Password generation
from random import randintdef passwordgen(request): str_not_include = "1 L I i l o O 0" str_small ="abcdefghjkmnpqrstuvwxyz" str_caps = str_small.upper() str_num = "23456789" str_special...

A program to calculate Correlation Coefficient
Task: Calculating the Correlation-coefficient using Python We know that the correlation coefficient is calculated using the formula nΣxy- ΣxΣy / (√(nΣx^2-(Σx)^2)...

Python- Basic Concepts part 2
1. Other Numerical Operations a. Exponentiation Besides addition, subtraction, multiplication, and division, Python also supports exponentiation, which is the raising of one number to the power of...

Different types of data in python3
Python3 features Numbers(int,float,complex), String, Lists, Tuples, Dictionary and Sets type of data. long interger type numbers from python2 is no longer required. Below are examples of all python3 data...

Recommended Articles

Python is one of the most popular programming languages in the world. It is general-purpose, object oriented, high-level programming language used in a number of programming fields. Python is a great programming language to learn as it will introduce you to the world of programming. If you are from the technical background...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for Python Training classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you