How to train the Stanford NLP Sentiment Analysis tool

后端 未结 3 1424
时光说笑
时光说笑 2020-11-30 03:11

Hell everyone! I\'m using the Stanford Core NLP package and my goal is to perform sentiment analysis on a live-stream of tweets.

Using the sentiment analysis tool a

3条回答
  •  暖寄归人
    2020-11-30 03:53

    If it helps, I got the C# code from Arachnode working very easily - a tweak or two to get the right paths for models and so on, but it then works great. What was missing was something about the right format for the input files. It's in the Javadoc, but for reference, for BuildBinarizedDataset it's something like:

    2 line of text here
    
    0 another line of text 
    
    1 yet another line of text
    
    etc
    

    Building that is pretty trivial, depending on what you're starting with (a database, Excel file, whatever)

提交回复
热议问题