googleapis / googleapis/google-cloud-java
There should be way for providing List of Document for analyzeSentiment instead of single Document
- 主要言語
- Java
- スター
- 2.1k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 157
説明
I am trying to get the Sentiment for the conversation between Agent and Customer on sentence level using **Google Cloud Natural Language API**.
But observation is, i have to call API for each sentence Is there any way to get the sentiment for List of Document And after Successfull Sentiment i am able to map that sentiment to each sentence.
Here is the snniped code which i tried for sentiment analysis
There is no way to give List of Document
```java
Document doc = Document.newBuilder()
.setContent(TEXT)
.setType(Document.Type.PLAIN_TEXT)
.build();
AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(doc);
Sentiment documentSentiment = response.getDocumentSentiment();
log.info("sentence:{}", fromObjectToJson(documentSentiment));
```
コントリビューションガイド
調査の方向性
Start with the Java analyzeSentiment call shown in the issue and review the Google Cloud Natural Language API's document and sentiment-analysis interfaces. Determine whether list-based analysis is supported and what response structure would allow sentiments to be mapped back to sentences; the issue is done when the supported approach or required API change is clearly established.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- google-cloud, java
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100