You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dpi.parameters.content="Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS";
39
+
dpi.parameters.contentUri=null;
40
+
41
+
dpi.rosette(endpoint,function(err,res){
42
+
if(err){
43
+
console.log(err);
44
+
}else{
45
+
console.log(JSON.stringify(res,null,2));
46
+
47
+
endpoint="entities";
48
+
varfpi=newApi(args.key);
49
+
fpi.parameters.content="Last month director Paul Feig announced the movie will have an all-star female cast including Kristen Wiig, Melissa McCarthy, Leslie Jones and Kate McKinnon.";
varmorphology_lemmas_data="The fact is that the geese just went back to get a rest and I'm not banking on their return soon";
111
+
content=morphology_lemmas_data;
112
+
113
+
lpi.parameters.content=content;
114
+
lpi.parameters.morphology="lemmas";
115
+
116
+
lpi.rosette(endpoint,function(err,res){
117
+
if(err){
118
+
console.log(err);
119
+
}else{
120
+
console.log(JSON.stringify(res,null,2));
121
+
varzpi=newApi(args.key);
122
+
varmorphology_parts_of_speech_data="The fact is that the geese just went back to get a rest and I'm not banking on their return soon";
123
+
content=morphology_parts_of_speech_data;
124
+
125
+
zpi.parameters.content=content;
126
+
zpi.parameters.morphology="parts-of-speech";
127
+
128
+
zpi.rosette(endpoint,function(err,res){
129
+
if(err){
130
+
console.log(err);
131
+
}else{
132
+
console.log(JSON.stringify(res,null,2));
133
+
varxpi=newApi(args.key);
134
+
endpoint="ping";
135
+
136
+
xpi.rosette(endpoint,function(err,res){
137
+
if(err){
138
+
console.log(err)
139
+
}else{
140
+
console.log(JSON.stringify(res,null,2));
141
+
varcpi=newApi(args.key);
142
+
endpoint="relationships";
143
+
144
+
varrelationships_text_data="Bill Murray is in the new Ghostbusters film!";
145
+
varcontent=relationships_text_data;
146
+
147
+
cpi.parameters.content=content;
148
+
cpi.parameters.accuracyMode="precision";
149
+
150
+
cpi.rosette(endpoint,function(err,res){
151
+
if(err){
152
+
console.log(err);
153
+
}else{
154
+
console.log(JSON.stringify(res,null,2));
155
+
varvpi=newApi(args.key);
156
+
endpoint="sentences";
157
+
158
+
varsentences_data="This land is your land. This land is my land\nFrom California to the New York island;\nFrom the red wood forest to the Gulf Stream waters\n\nThis land was made for you and Me.\n\nAs I was walking that ribbon of highway,\nI saw above me that endless skyway:\nI saw below me that golden valley:\nThis land was made for you and me.";
159
+
varcontent=sentences_data;
160
+
161
+
vpi.parameters.content=content;
162
+
163
+
vpi.rosette(endpoint,function(err,res){
164
+
if(err){
165
+
console.log(err);
166
+
}else{
167
+
console.log(JSON.stringify(res,null,2));
168
+
varbpi=newApi(args.key);
169
+
varfile=newtmp.File();
170
+
varsentiment_file_data="<html><head><title>New Ghostbusters Film</title></head><body><p>Original Ghostbuster Dan Aykroyd, who also co-wrote the 1984 Ghostbusters film, couldn’t be more pleased with the new all-female Ghostbusters cast, telling The Hollywood Reporter, “The Aykroyd family is delighted by this inheritance of the Ghostbusters torch by these most magnificent women in comedy.”</p></body></html>";
171
+
varfileContents=sentiment_file_data;
172
+
173
+
file.writeFileSync(fileContents);
174
+
175
+
endpoint="sentiment";
176
+
177
+
bpi.parameters.documentFile=file.path;
178
+
179
+
bpi.rosette(endpoint,function(err,res){
180
+
if(err){
181
+
console.log(err);
182
+
}else{
183
+
console.log(JSON.stringify(res,null,2));
184
+
varnpi=newApi(args.key);
185
+
endpoint="tokens";
186
+
187
+
vartokens_data="北京大学生物系主任办公室内部会议";
188
+
content=tokens_data;
189
+
npi.parameters.content=content;
190
+
191
+
npi.rosette(endpoint,function(err,res){
192
+
if(err){
193
+
console.log(err);
194
+
}else{
195
+
console.log(JSON.stringify(res,null,2));
196
+
varmpi=newApi(args.key);
197
+
endpoint="translatedName";
198
+
199
+
vartranslated_name_data="معمر محمد أبو منيار القذاف";
0 commit comments