This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
register 'opennlp-tools-1.5.1-incubating.jar'; | |
register 'opennlp-maxent-3.0.1-incubating.jar'; | |
register 'SentimentUDF-1.0-SNAPSHOT.jar'; | |
define getSentences com.Sentiment.udfSentence(); | |
--load reviews from json file | |
raw_review = LOAD 'review.json' USING JsonLoader('votes:(funny:int,useful:int,cool:int),user_id:chararray,review_id:chararray,stars:int,date:chararray,text:chararray,type:chararray,business_id:chararray'); | |
--seperate sentences from given review text using java UDF |