Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
See: Cloud Natural Language API Reference for language.documents.analyzeEntitySentiment
.
Synopsis
- type DocumentsAnalyzeEntitySentimentResource = "v1" :> ("documents:analyzeEntitySentiment" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnalyzeEntitySentimentRequest :> Post '[JSON] AnalyzeEntitySentimentResponse))))))))
- documentsAnalyzeEntitySentiment :: AnalyzeEntitySentimentRequest -> DocumentsAnalyzeEntitySentiment
- data DocumentsAnalyzeEntitySentiment
- daesXgafv :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Xgafv)
- daesUploadProtocol :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text)
- daesAccessToken :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text)
- daesUploadType :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text)
- daesPayload :: Lens' DocumentsAnalyzeEntitySentiment AnalyzeEntitySentimentRequest
- daesCallback :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text)
REST Resource
type DocumentsAnalyzeEntitySentimentResource = "v1" :> ("documents:analyzeEntitySentiment" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AnalyzeEntitySentimentRequest :> Post '[JSON] AnalyzeEntitySentimentResponse)))))))) Source #
A resource alias for language.documents.analyzeEntitySentiment
method which the
DocumentsAnalyzeEntitySentiment
request conforms to.
Creating a Request
documentsAnalyzeEntitySentiment Source #
Creates a value of DocumentsAnalyzeEntitySentiment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DocumentsAnalyzeEntitySentiment Source #
Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions.
See: documentsAnalyzeEntitySentiment
smart constructor.
Instances
Request Lenses
daesUploadProtocol :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
daesAccessToken :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text) Source #
OAuth access token.
daesUploadType :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
daesPayload :: Lens' DocumentsAnalyzeEntitySentiment AnalyzeEntitySentimentRequest Source #
Multipart request metadata.
daesCallback :: Lens' DocumentsAnalyzeEntitySentiment (Maybe Text) Source #
JSONP