我正在使用Google Natural Language API来分析来自不同文本的实体.有没有办法将输入文本的语言更改为,例如英语,就像AlchemyAPI的情况一样
service.setLanguage (LanguageSelection.ENGLISH);
Run Code Online (Sandbox Code Playgroud)
谢谢
我正在使用 google-cloud/language api 进行 #annotate 调用,并从我从各种在线资源中获取的评论 csv 中分析实体和情绪。
\n\n首先,我尝试分析的字符串包含 commentId,因此我重新格式化:
\n\nyoutubez22htrtb1ymtdlka404t1aokg2kirffb53u3pya0,i just bot a Nostromo... ( ._.)\xef\xbb\xbf\nyoutubez22oet0bruejcdf0gacdp431wxg3vb2zxoiov1da,Good Job Baby! MSI Propeller Blade Technology!\xef\xbb\xbf\nyoutubez22ri11akra4tfku3acdp432h1qyzap3yy4ziifc,"exactly, i have to deal with that damned brick, and the power supply can't be upgraded because of it, because as far as power supply goes, i have never seen an external one on newegg that has more power then the x51's\xef\xbb\xbf"\nyoutubez23ttpsyolztc1ep004t1aokg5zuyqxfqykgyjqs,"I like how people are liking your comment about liking the fact that Sky DID …Run Code Online (Sandbox Code Playgroud) javascript string offset google-language-api sentiment-analysis
我正在尝试使用提供的Java客户端的google语言API对文本进行分类.代码在Scala中,它看起来像这样:
val language = LanguageServiceClient.create()
val doc = Document.newBuilder.setGcsContentUri(draftBody).setType(Type.PLAIN_TEXT).build
val request = ClassifyTextRequest.newBuilder.setDocument(doc).build
val response = language.classifyText(request)
Run Code Online (Sandbox Code Playgroud)
客户端无法授权,是否有办法使用我创建的API密钥进行授权?