AI-news-app

所属分类:模式识别(视觉/语音等)
开发工具:JavaScript
文件大小:118530KB
下载次数:0
上传日期:2021-05-29 15:26:22
上 传 者sh-1993
说明:  人工智能新闻应用程序,在这个项目中,使用Alan人工智能建立了会话语音控制的 React新闻应用程序。Alan AI是一位革命家...
(In this project Conversational Voice Controlled React News Application using Alan AI is built. Alan AI is a revolutionary speech recognition software that allows you to add voice capabilities to your applications.)

文件列表:
build (0, 2021-05-29)
build\asset-manifest.json (1035, 2021-05-29)
build\favicon.ico (3870, 2021-05-29)
build\index.html (2216, 2021-05-29)
build\manifest.json (492, 2021-05-29)
build\node_modules (0, 2021-05-29)
build\node_modules\.bin (0, 2021-05-29)
build\node_modules\.bin\acorn (62, 2021-05-29)
build\node_modules\.bin\ansi-html (2039, 2021-05-29)
build\node_modules\.bin\atob (122, 2021-05-29)
build\node_modules\.bin\autoprefixer (540, 2021-05-29)
build\node_modules\.bin\babylon (341, 2021-05-29)
build\node_modules\.bin\browserslist (4004, 2021-05-29)
build\node_modules\.bin\css-blank-pseudo (3570, 2021-05-29)
build\node_modules\.bin\css-has-pseudo (4711, 2021-05-29)
build\node_modules\.bin\css-prefers-color-scheme (2647, 2021-05-29)
build\node_modules\.bin\cssesc (3103, 2021-05-29)
build\node_modules\.bin\detect (1321, 2021-05-29)
build\node_modules\.bin\detect-port (1321, 2021-05-29)
build\node_modules\.bin\errno (440, 2021-05-29)
build\node_modules\.bin\escodegen (2710, 2021-05-29)
build\node_modules\.bin\esgenerate (2415, 2021-05-29)
build\node_modules\.bin\eslint (3616, 2021-05-29)
build\node_modules\.bin\esparse (4948, 2021-05-29)
build\node_modules\.bin\esvalidate (7744, 2021-05-29)
build\node_modules\.bin\he (3626, 2021-05-29)
build\node_modules\.bin\html-minifier-terser (11743, 2021-05-29)
build\node_modules\.bin\import-local-fixture (126, 2021-05-29)
build\node_modules\.bin\is-ci (70, 2021-05-29)
build\node_modules\.bin\jest (343, 2021-05-29)
build\node_modules\.bin\jest-runtime (334, 2021-05-29)
build\node_modules\.bin\js-yaml (2727, 2021-05-29)
build\node_modules\.bin\jsesc (3833, 2021-05-29)
build\node_modules\.bin\json5 (2899, 2021-05-29)
build\node_modules\.bin\loose-envify (356, 2021-05-29)
build\node_modules\.bin\miller-rabin (599, 2021-05-29)
build\node_modules\.bin\mime (157, 2021-05-29)
... ...

[![Build Status](https://secure.travis-ci.org/kriskowal/q.svg?branch=master)](http://travis-ci.org/kriskowal/q) [![CDNJS](https://img.shields.io/cdnjs/v/q.js.svg)](https://cdnjs.com/libraries/q.js) Q logo If a function cannot return a value or throw an exception without blocking, it can return a promise instead. A promise is an object that represents the return value or the thrown exception that the function may eventually provide. A promise can also be used as a proxy for a [remote object][Q-Connection] to overcome latency. [Q-Connection]: https://github.com/kriskowal/q-connection On the first pass, promises can mitigate the “[Pyramid of Doom][POD]”: the situation where code marches to the right faster than it marches forward. [POD]: http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/ ```javascript step1(function (value1) { step2(value1, function(value2) { step3(value2, function(value3) { step4(value3, function(value4) { // Do something with value4 }); }); }); }); ``` With a promise library, you can flatten the pyramid. ```javascript Q.fcall(promisedStep1) .then(promisedStep2) .then(promisedStep3) .then(promisedStep4) .then(function (value4) { // Do something with value4 }) .catch(function (error) { // Handle any error from all above steps }) .done(); ``` With this approach, you also get implicit error propagation, just like `try`, `catch`, and `finally`. An error in `promisedStep1` will flow all the way to the `catch` function, where it’s caught and handled. (Here `promisedStepN` is a version of `stepN` that returns a promise.) The callback approach is called an “inversion of control”. A function that accepts a callback instead of a return value is saying, “Don’t call me, I’ll call you.”. Promises [un-invert][IOC] the inversion, cleanly separating the input arguments from control flow arguments. This simplifies the use and creation of API’s, particularly variadic, rest and spread arguments. [IOC]: http://www.slideshare.net/domenicdenicola/callbacks-promises-and-coroutines-oh-my-the-evolution-of-asynchronicity-in-javascript ## Getting Started The Q module can be loaded as: - A ``