On 15 May 2012 04:20, JAGANADH G <[email protected]> wrote:
> Hi All
>
> Is it possible to apply linear discriminant analysis in text data ?
> If so how can I prepare the data for same
>
> If it is a dumb question forgive
>
> Thanks in advance
>
> --
> **********************************
> JAGANADH G
> http://jaganadhg.in
> *ILUGCBE*
> http://ilugcbe.org.in
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-<https://lists.sourceforge.net/lists/listinfo/scikit-learn-general>
Hello,
You cannot apply the method directly to the text, but you can to a
representation (usually numerical) of the text.
A simple one would be to pick 50 words and have the frequency of each word
for each document.
See here for an example: http://en.wikipedia.org/wiki/Bag_of_words_model
Other representations exist, you will have to consult the relevant area of
research to find the better representations for your purpose (are you doing
topic classification, authorship attribution, language detection, etc?).
- Robert
--
Public key at: http://pgp.mit.edu/ Search for this email address and select
the key from "2011-08-19" (key id: 54BA8735)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general