title: Stanford NLP- Sentiment analysis for Chinese language
body: <p>i want to create a sentiment analysis program that takes in a dataset in Chinese and determine whether are there more of positive,negative or neutral statement. Following the example, i create a sentiment analysis for English (stanford-corenlp) which works exactly what i want but taking in Chinese. </p>
  
  <p>Questions:</p>
  
  <pre><code>    Properties props = new Properties();
      props.setProperty("annotators", "tokenize, ssplit, parse, sentiment");
      // gender,lemma,ner,parse,pos,sentiment,sspplit, tokenize
      StanfordCoreNLP pipeline = new StanfordCoreNLP(props);
  
       // read some text in the text variable
  
      String sentimentText = "Fun day, isn't it?";
      String[] ratings = {"Very Negative","Negative", "Neutral", "Positive", "Very Positive"};
      Annotation annotation = pipeline.process(sentimentText);
      for (CoreMap sentence : annotation.get(CoreAnnotations.SentencesAnnotation.class)) {
       Tree tree = sentence.get(SentimentCoreAnnotations.AnnotatedTree.class);
       int score = RNNCoreAnnotations.getPredictedClass(tree);
       System.out.println("sentence:'"+ sentence + "' has a score of "+ (score-2) +" rating: " + ratings[score]);
       System.out.println(tree);
  </code></pre>
  
  <p>Currently, i have no idea on how to change the above code to have it support Chinese Language. I downloaded the Chinese praser and segmenter and seen the demo. But after days of trying, it didn't lead to anywhere. I have also read the <a href="http://nlp.stanford.edu/software/corenlp.shtml" rel="nofollow noreferrer">http://nlp.stanford.edu/software/corenlp.shtml</a>, it is really useful for the English version. Is there any ebooks, tutorial or examples that can assist me on understanding how the Chinese sentiment analysis of Stanford NLP works ? </p>
  
  <p>Thanks in advanced!</p>
  
  <p>PS: I picked up java not too long ago, pardon me if there is some things that i did not say or done correctly. </p>
  
  <p>What i had researched:</p>
  
  <p><a href="https://stackoverflow.com/questions/11429722/how-to-parse-languages-other-than-english-with-stanford-parser-in-java-not-com">How to parse languages other than English with Stanford Parser？ in java, not command lines</a></p>
  
  <p> <a href="https://stackoverflow.com/questions/22703614/using-stanford-parser-to-parse-chinese?rq=1">Using stanford parser to parse Chinese</a></p>