{"_id":"@botbuildercommunity/middleware-aws-comprehend","_rev":"6-f02dbff7afa4f3e3867974a8ff35f6fd","name":"@botbuildercommunity/middleware-aws-comprehend","dist-tags":{"latest":"1.0.2"},"versions":{"0.1.0":{"name":"@botbuildercommunity/middleware-aws-comprehend","version":"0.1.0","description":"Bot Framework middleware component for the Amazon AWS Comprehend service, including sentiment analysis, language detection, entity extraction, and keyword recognition.","main":"./lib/index.js","typings":"./lib/index.d.ts","directories":{"lib":"lib"},"scripts":{"build":"tsc","test":"tsc && mocha","test-ci":"tsc && mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","aws","comprehend","amazon","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Michael Szul","email":"michael@szul.us"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"@botbuildercommunity/middleware-engine-core":"^1.0.0","aws-sdk":"^2.521.0","botbuilder":"^4.5.3"},"devDependencies":{"@types/aws-sdk":"^2.7.0","mocha":"^6.2.0","typescript":"^3.5.3"},"publishConfig":{"access":"public"},"_id":"@botbuildercommunity/middleware-aws-comprehend@0.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ZlkRLDAX9t3mxrFDp5Jsy9oF6not/vrntzBmOvsqYSxqSdcJX87TCOtTkhULcOp3q4iq65JcUUkx3wLWZKVEsg==","shasum":"154c02e3056561744f1acc2b49720ba10df56642","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-aws-comprehend/-/middleware-aws-comprehend-0.1.0.tgz","fileCount":32,"unpackedSize":40164,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcPmiCRA9TVsSAnZWagAAPFwQAJ0W2gfIXGUAWaN3CA6P\nNTVWn4/u+Ml9zFV0MxmtsyB4MFZ9YZd21Crp60kBap6XgAIj+EKBtDckz+u4\nXhrMUfl41wbuWAm0b0ItlXBa+8DCh209fcZp8Nv4SWW0FP2173UiDLbwy9Y5\nN7tzspm2AL8kZzsL8YiqgaoOug5/Ksd1Cc66WKV5Tne7N5deI+OTAbxboWLp\n69A9Ux1ziCALTVGUsgH9o+eKOz2c5P6hK+tQ6QqP7bV1GiR7KFs0+J++Yqop\n6dGofuszhGZ9dLvSYgc0msPYaS3mNlYe2v7Gdo014+UIH1nSQlG9M4EEhXGq\n2ovmLYpE/Hb9F1o9qj4b2+QrXHD+fBdcKW9ewqi8Qa2UX08DRIJzj0Nx6SkV\nPg0H6NmodAFrIzwY0Rx/u82yf2WLkf6zd1Js/4S4NT38l3Tja1Rdi0TEQbvy\nbC6XirHzzDvvDXVqsifFCI9vrG+DLC2t/U3ovzFjVrECuGOXZCd+hy5rZ9R6\nL4rz5MMHUjpPxSA+EdDqoUzI8SjKPkeKAUvQIhzF2fHRsWbMFakJR41ILSrH\n5TdTUUE6x1wCBeL0xoZ5FA6AGbq/UrLA9c3BbBF235rE/zJS7q/R51bHJbEq\nspJzz3ZujlEXntNqwANgGA+9jbjiB3KtRmWK7M/p0JHU6alUHKy5NUxjqVzz\ndtdk\r\n=JwQx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFb6/7jVEkQy+448LZvUpJYvPvLF/sggmGA0Ez/l41jUAiEAoMCq9JjaV54eOKLfKbnwCSzfkICnJpuWMKsO0CKQ/XM="}]},"maintainers":[{"name":"cloudguy_pro","email":"stephan@bisser.at"},{"name":"szul","email":"michael@szul.us"},{"name":"jamesemann","email":"james.mann@bcs.org"}],"_npmUser":{"name":"szul","email":"michael@szul.us"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-aws-comprehend_0.1.0_1567685025853_0.8162586409662032"},"_hasShrinkwrap":false},"1.0.0":{"name":"@botbuildercommunity/middleware-aws-comprehend","version":"1.0.0","description":"Bot Framework middleware component for the Amazon AWS Comprehend service, including sentiment analysis, language detection, entity extraction, and keyword recognition.","main":"./lib/index.js","typings":"./lib/index.d.ts","directories":{"lib":"lib"},"scripts":{"build":"tsc","test":"tsc && mocha","test-ci":"tsc && mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","aws","comprehend","amazon","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Michael Szul","email":"michael@szul.us"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"@botbuildercommunity/middleware-engine-core":"^1.0.0","aws-sdk":"^2.521.0","botbuilder":"^4.5.3"},"devDependencies":{"@types/aws-sdk":"^2.7.0","mocha":"^6.2.0","typescript":"^3.5.3"},"publishConfig":{"access":"public"},"_id":"@botbuildercommunity/middleware-aws-comprehend@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-BQKaVKl9ANqsXxMVwDA+XBpbV/waK3E+y32Is5v8gyUTOKHSNG7izBA6i3wLwifMwtGw9aT1HJjJFaYY7HeVVg==","shasum":"2496e7c5c6fe55bbfd58645b633c302859c5a235","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-aws-comprehend/-/middleware-aws-comprehend-1.0.0.tgz","fileCount":32,"unpackedSize":40235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjhKNCRA9TVsSAnZWagAA+dYQAIH2dKm+yrrYaZH3/fGE\nmvqSTKI6KHMm4lQmd6s1ew6jG4zEP6K/twWsc8x2dUpHONOJyd638e8G0fhF\nsxoXB8qjUCZWAzuiXIweyGwqunz2voq+ASjGZ7rSassJeKVB2PuBqhFi09FS\nBXdMjui9sqkrI/ZSWBjma5T8iQBq3bO1HecnTxj93twPxGmGHFMZijBPxvV6\n9L7gvkl11GoD/3G+kdm0mdLuVIH7Rv7/m1ytxXomegpFMOm68Ur3D0XJxlz9\niyFtNaZu116sZyBrlwAV6GZDEAEvE6GBmxAKeeipM0eAAvLa5VpqVccQnFRN\nkTeIan9hph37SJ9ABI7OExpsuayocEk1ekzvEymCcynX/v8274NSGa6VUUZu\n06ILrgGGg0WfheRM36Po+yqTEluIma51V6oCt6mgEZa91nJ9/lPxGgVkoy/u\nns798+dg32pV/IZxaTM8UuGXyV0oixKb3F16imE94hlagp1JNrslcjzV0rsZ\nwihSGqXmfbW+sF6gVhiipHhvWqiSBLxBWYsD23l2iils0V9WG3piNSsP9GDU\nocTlFYnupIBoa4BW/TkLbBm09RwPDcKJD8qGC/IVD6J7k87L7fk9BSo939Oe\nSyUi/eKZ01w67mIy2TsxbqJkXdDqfMRXBo5kEVziI9r3xwiq0tkAntS4qSiv\nyWuX\r\n=RqkJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHezGqr1FKvEjJfvNM/m/9yeF4XSUHpImpupaYFvsm/IAiEA4rKCmpG9BuaEGDoVd1/mBWKPSFnxnueaVIqG9jfxWCc="}]},"maintainers":[{"name":"cloudguy_pro","email":"stephan@bisser.at"},{"name":"jamesemann","email":"james.mann@bcs.org"},{"name":"szul","email":"michael@szul.us"}],"_npmUser":{"name":"szul","email":"michael@szul.us"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-aws-comprehend_1.0.0_1569591948638_0.27577416497115426"},"_hasShrinkwrap":false},"1.0.1":{"name":"@botbuildercommunity/middleware-aws-comprehend","version":"1.0.1","description":"Bot Framework middleware component for the Amazon AWS Comprehend service, including sentiment analysis, language detection, entity extraction, and keyword recognition.","main":"./lib/index.js","typings":"./lib/index.d.ts","directories":{"lib":"lib"},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","all":true,"check-coverage":true,"lines":0,"statements":0,"functions":0,"branches":0,"exclude":["**/*.d.ts","**/*.test.js"],"reporter":["text","cobertura","html"],"report-dir":"./.nyc_output/coverage"},"scripts":{"build":"tsc","test":"tsc && nyc mocha","test-ci":"tsc && nyc mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","aws","comprehend","amazon","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Michael Szul","email":"michael@szul.us"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"@botbuildercommunity/middleware-engine-core":"^1.0.0","aws-sdk":"^2.521.0","botbuilder":"^4.5.3"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^0.1.3","@types/aws-sdk":"^2.7.0","mocha":"^6.2.0","nyc":"^14.1.1","typescript":"^3.5.3"},"publishConfig":{"access":"public"},"_id":"@botbuildercommunity/middleware-aws-comprehend@1.0.1","_nodeVersion":"10.16.1","_npmVersion":"6.12.0","dist":{"integrity":"sha512-0oL6snCvE+ug6wiq5asZLXtRTsh0G/WPvFiyoKrXdhvnCrB/w5x1ATQQV2+TdmseV8KvTPrcBTl/B9MFJzWlng==","shasum":"b287294cc699cdeff4251ad084e9067694a038e9","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-aws-comprehend/-/middleware-aws-comprehend-1.0.1.tgz","fileCount":32,"unpackedSize":40704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdt1BfCRA9TVsSAnZWagAAoDoP/1ztTjkF63rWf/U5QC+s\nY1AJwxB4+3otbCwezkJ1n8nKdYxN6VvrIo1Z+kLFDi8Nr3P9L0xsLwM9j597\nvCx/rMUW/rbYf6bZffY1fpXdZ/ue5UfXZahvyWHhjwqo41tyUrt88pKdU8U5\nu+gr1+9WTaugJ156PpGX95UJjNX9WMUny/f/Q0WiarZdIyNLvq2huXMerX8t\nXmUeIWTIhjPGfmm5Wt4htgsOdjEo7r5jvoH1fFb6yiTxO8sZv1w0gf3dyfyS\nmZTOJiHGYB+j/FownpHqSTNS27w8EWNEnb9imd7QYvrWTQLsEEDMNAxUaJkK\nbbM97Xtdi/fgCIiMtiupTwz1LkrQt+ClmbtMjTgela7u3a350UhfvfYXzzJv\nI1Enk3QFjNLY3K5anjGqxhXLCDqFUHoAZjSjAkgo/NjRwOVYcZBbcf1vTZ7W\nvRj2dyMCWDvO8vLVjNJVo2C88hDplCI+alVFptuHAaqRb/kig0lyVJDRAAnz\noWHVqwcjIhUUa503uNS0c1v+LzsBG/qyd5QIU3oQpZfKR5rh3joblWiYy1e+\nNcbDVyXYVZKlcNhw0zOsIi/OSd8qCPwd7vgE4uvR/OwH7jH279QKA3QTm0Y5\nLvECYJe1Gryp/v3ajdaSmQMyegkvzyOkSAM2oFic7s4o2lVWhzLhAzNYbUuv\nKNBE\r\n=G6Tz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDcXDMCt68JUFnOIkgZCs1r7iJtd3NPDUJJoJGKyL+aaAiAK3uHvmunUPdyz/vapnQaDxro3iaotLUGOYZy0fSu16Q=="}]},"maintainers":[{"name":"cloudguy_pro","email":"stephan@bisser.at"},{"name":"jamesemann","email":"james.mann@bcs.org"},{"name":"szul","email":"michael@szul.us"}],"_npmUser":{"name":"szul","email":"michael@szul.us"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-aws-comprehend_1.0.1_1572294751471_0.14103332235408628"},"_hasShrinkwrap":false},"1.0.2":{"name":"@botbuildercommunity/middleware-aws-comprehend","version":"1.0.2","description":"Bot Framework middleware component for the Amazon AWS Comprehend service, including sentiment analysis, language detection, entity extraction, and keyword recognition.","main":"./lib/index.js","typings":"./lib/index.d.ts","directories":{"lib":"lib"},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","all":true,"check-coverage":true,"lines":0,"statements":0,"functions":0,"branches":0,"exclude":["**/*.d.ts","**/*.test.js"],"reporter":["text","cobertura","html"],"report-dir":"./.nyc_output/coverage"},"scripts":{"build":"tsc","test":"tsc && nyc mocha","test-ci":"tsc && nyc mocha --reporter xunit --reporter-options output=./mocha-test-results.xml --reporter-options suiteName=$npm_package_name"},"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"keywords":["chatbots","bot framework","bot builder","sentiment analysis","aws","comprehend","amazon","middleware"],"contributors":[{"name":"Bot Builder Community"},{"name":"Michael Szul","email":"michael@szul.us"}],"license":"MIT","bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","dependencies":{"@botbuildercommunity/middleware-engine-core":"^1.0.0","aws-sdk":"^2.521.0","botbuilder":"^4.8.0"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^0.1.3","@types/aws-sdk":"^2.7.0","mocha":"^7.1.1","nyc":"^15.0.0","typescript":"^3.5.3"},"publishConfig":{"access":"public"},"gitHead":"1066f5f7752f3298e575aa495afa4592d5f54a44","_id":"@botbuildercommunity/middleware-aws-comprehend@1.0.2","_nodeVersion":"12.14.0","_npmVersion":"lerna/3.20.2/node@v12.14.0+x64 (darwin)","dist":{"integrity":"sha512-FpCMOF1X6RRrOyn7QwjSgaFrKanCtZ7C2CmvvR3XjOTeyFv4vsdDBBTna1KRwbJ8fChg9BO7T1or9MqCgx9UXQ==","shasum":"3548240bfada02da3ec09921ed0da5a754fe3a57","tarball":"https://registry.npmjs.org/@botbuildercommunity/middleware-aws-comprehend/-/middleware-aws-comprehend-1.0.2.tgz","fileCount":34,"unpackedSize":41752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefMsPCRA9TVsSAnZWagAAEkcP/i2sMrKDwIOlXbxaCh89\nKeLfe9ZfG82jV2ElduXe1nN0oUSlGf0BgaGRM1UpsG14crplXnhspIPc6dCk\nacJRMwSCI+BdUOljRQWE6OkA9xS44Q/PD+0uyTRT4XxP0m68r6dRd5SPeydL\nYSV3gGL1Taq4oAAxC1PstXcWv2xsJUFjqRo7maPe2GfjShSHxwsova4pG967\nwpZeNz1kM80Ai2mHUTKVdTf654qNSv1sfeMh7Y9ZHPZ6xZNnzxvdGf8DqC1p\nFg3oMvwRQJNlSjk7w7LHENHFWE6/pNLdz9KY1TyyePOLu3pnuQ+7GJuTqy3d\n79tBGsW5hHzRAZOH7gINtTt2d2VcDMQOOGSy5XgQDCEVsq11SAuHnjlGEl0b\nejVTLzwQtwxjUiPRJBnJzwvzii/9tmCJ5PR9DCYMCME0a2PT+juKDDrNaBGi\nKgIdSvOHXWFi1Z8aLGBbEVZ8Bb4OqFdIaCoyWtN0qeaymuLgsCft/0Z/tl4B\nH1q8pjn2jGe1LxMrqYKrTD2xh9MJrHuOlXPVWc9W7KWrJDflO7RyCmVdAluV\n4zr6sp1uHTHrZTt+WTwg/1dWE1LAfrQI4PBkgTKHxRiodwD19WIrilUztA53\nbccVCY7Dbh5oI9F970WVvZ2xtuUEuKC/7qZreRdhDAWs6vyyyag3834uzS2l\nP9HN\r\n=t7L4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEemv+eT4BRuoiKp65GAtexE3J2t1EnxsMbQFL3wGY5JAiAoLIFnav2dXLyS/eCZn+8chJ2Z/wjnfJX4JHr9LeeNaA=="}]},"maintainers":[{"email":"stephan@bisser.at","name":"cloudguy_pro"},{"email":"mick@imick.nl","name":"imick"},{"email":"james.mann@bcs.org","name":"jamesemann"},{"email":"michael@szul.us","name":"szul"}],"_npmUser":{"name":"imick","email":"mick@imick.nl"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/middleware-aws-comprehend_1.0.2_1585236751240_0.230131892618189"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-05T12:03:45.765Z","0.1.0":"2019-09-05T12:03:46.011Z","modified":"2022-04-04T20:13:42.620Z","1.0.0":"2019-09-27T13:45:48.765Z","1.0.1":"2019-10-28T20:32:31.590Z","1.0.2":"2020-03-26T15:32:31.416Z"},"maintainers":[{"email":"james.mann@bcs.org","name":"jamesemann"},{"email":"stephan@bisser.at","name":"cloudguy_pro"},{"email":"mick@imick.nl","name":"imick"}],"description":"Bot Framework middleware component for the Amazon AWS Comprehend service, including sentiment analysis, language detection, entity extraction, and keyword recognition.","homepage":"https://github.com/BotBuilderCommunity/botbuilder-community-js#readme","keywords":["chatbots","bot framework","bot builder","sentiment analysis","aws","comprehend","amazon","middleware"],"repository":{"type":"git","url":"git+https://github.com/BotBuilderCommunity/botbuilder-community-js.git"},"contributors":[{"name":"Bot Builder Community"},{"name":"Michael Szul","email":"michael@szul.us"}],"bugs":{"url":"https://github.com/BotBuilderCommunity/botbuilder-community-js/issues"},"license":"MIT","readme":"# AWS Comprehend Middleware\n\nThe AWS Comprehend Middleware offers Bot Framework middleware components for the AWS Comprehend API. You will need an AWS  account, as well as a Comprehend resource created on AWS. Take a look at the [Amazon AWS Comprehend documentation](https://aws.amazon.com/comprehend/?nc2=h_m1) for details.\n\n## Installing\n\n    npm install @botbuildercommunity/middleware-aws-comprehend --save\n\n## Authentication\n\nThis package assumes that your AWS credentials are set in the environment variables. The following environment variables are required:\n\n    AWS_ACCESS_KEY_ID\n    AWS_SECRET_ACCESS_KEY\n\n## Usage\n\nAll middleware is created and used in the same way. For example, for sentiment analysis, import the `SentimentAnalysis` class from the package, and add it to your bot adapter:\n\n```typescript\nimport { SentimentAnalysis } from '@botbuildercommunity/middleware-aws-comprehend';\n\nadapter.use(new SentimentAnalysis());\n```\n\nWhen used, the `turnState` on the `TurnContext` will have a property named `sentimentScore` between 0 and 1. A full example can be seen in the [`sample`](../../samples/middleware-aws-comprehend/index.js) bot test file.\n\n> Differences from Cognitive Services and Watson: AWS Comprehend does not return a 0 - 1 response on the sentiment. Instead, it returns 0 - 1 for each possible sentiment. You can access the sentiment through the `sentimentType` property on the `turnState`.\n\nBy default, the middleware assumes an East US region and English as the language. You can modify this by passing in `AWSComprehendOptions` to the `SentimentAnalysis`:\n\n```typescript\nimport { SentimentAnalysis } from '@botbuildercommunity/middleware-aws-comprehend';\n\nadapter.use(new SentimentAnalysis({ apiVersion: '2017-11-27', region: 'us-east-1', lang: 'en' }));\n```\n\n\n\nSupported middleware classes include:\n\n* `SentimentAnalysis`\n* `LanguageDetection`\n* `KeyPhrases`\n* `EntityExtraction`\n\nIn each case, properties are added to the `turnState` of the `TurnContext`. You can retrieve them in your bot via:\n\n* `context.turnState.get('sentimentScore')` //This is a number for `SentimentAnalysis`\n* `context.turnState.get('sentimentType')` //This is a string for `SentimentAnalysis`\n* `context.turnState.get('language')` //This is a string for `LanguageDetection`\n* `context.turnState.get('keyPhrases')` //This is an array of strings for `KeyPhrases`\n* `context.turnState.get('textEntities')` //This is an array of strings for `EntityExtraction`\n","readmeFilename":"README.md"}