followed by ‘/JJ’.
2. Adjective list: Adjectives convey a high degree ofopinion; hence they play an important role inSentiment Classification. From each tagged message board post we extract all the adjectives. (After tagging,
each adjective in the message is followed by ‘/JJ’, so in
this way we identify the adjectives.)3. SentiWordNet lexicon: SentiWordNet is a lexicalresource for opinion mining. SentiWordNet assigns toeach synset of WordNet three sentiment scores:positivity, negativity, objectivity. For each adjective welookup this lexicon and use the correspondingpositivity, negativity and objectivity scores and then toderive the sentiment of the adjective.4. Semantic Orientation Identification: DJI has 30component companies. For any trading day, if weconsider any one company there are many messages.For each of these companies we need to find thesemantic orientation for each trading day, byconsidering all the messages for that company for thattrading day.After POS tagging described above, we extract theadjectives from each message and then follow the steps below to derive the sentiment for a particular trading dayfor a particular company.1. We find the Semantic Orientation of each adjectivein a message.2. Using the results from step 1, we find the SemanticOrientation of each message.3. Using the results from step 2, we find the sentimentfor each trading day for each company.The steps mentioned above are explained below.For each message we find its semantic orientationusing the SentiWordNet file. To find the semanticorientation of a message we need to first find the semanticorientation of each adjective in the message.The following approach is followed:For each adjective (Adj) in the message (M) we find itsSemantic Orientation (SO) using the following method:i.
Lookup the SentiWordNet file and find all recordswhere this adjective appears.Let n be the total number of records found.ii.
Calculate positivity score ( PosScore(Adj) ) andnegativity score (NegScore(Adj) ) of the adjective asfollows:PosScore(Adj) = (1)NegScore(Adj) = (2)iii.
If the PosScore(Adj) = NegScore(Adj),SO(Adj)= neutralelse If the PosScore(Adj) > NegScore(Adj) ,SO(Adj)= positiveelse SO(Adj)= negative.Once we get the semantic orientation of each adjectivein a message, we need to find the semantic orientation ofthe message.For each message (M):PosCnt =number of adjectives having positive semanticorientation.NegCnt =number of adjectives having negative semanticorientation.NeuCnt =number of adjectives having neutral semanticorientation.Semantic Orientation (M) is:neutral if PosCnt = NegCntneutral if NeuCnt > PosCnt and NeuCnt > NegCntpositive if PosCnt > NegCnt and PosCnt >= NeuCntnegative if NegCnt > PosCnt and NegCnt >=NeuCntOnce we get the semantic orientation of each messagewe find the semantic orientation for each trading day, foreach company, by following the approach (which we usedto find the semantic orientation of a message).Here first count the number of messages havingpositive sentiment, negative sentiment and neutralsentiment. Then we follow the rules given above. We thencreate a sentiment vector giving the sentiment for eachcompany.
3.3 Neural Network Training
We use the Feed Forward neural network structureemploying the Feed Forward Backpropogation algorithm.The network configuration details are as follows:1. Input layer: There is only one input layer. This layerwill accept the input data that is fed to the neuralnetwork. Each record in the input data correspondes toone trading day. In our confuration the input layer has
JOURNAL OF COMPUTING, VOLUME 4, ISSUE 6, JUNE 2012, ISSN (Online) 2151-9617https://sites.google.com/site/journalofcomputingWWW.JOURNALOFCOMPUTING.ORG242