{"id":13482689,"url":"https://github.com/watson-developer-cloud/natural-language-understanding-nodejs","last_synced_at":"2025-04-05T09:05:43.311Z","repository":{"id":38899028,"uuid":"83071218","full_name":"watson-developer-cloud/natural-language-understanding-nodejs","owner":"watson-developer-cloud","description":":new: Demo code for the Natural Language Understanding Service.","archived":false,"fork":false,"pushed_at":"2023-01-04T21:36:51.000Z","size":4553,"stargazers_count":136,"open_issues_count":28,"forks_count":160,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-02-26T03:35:29.784Z","etag":null,"topics":["ibm-bluemix","ibm-watson","natural-language-understanding","watson-services"],"latest_commit_sha":null,"homepage":"http://natural-language-understanding-demo.mybluemix.net/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watson-developer-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T18:32:44.000Z","updated_at":"2025-02-21T23:13:03.000Z","dependencies_parsed_at":"2023-02-02T20:46:11.677Z","dependency_job_id":null,"html_url":"https://github.com/watson-developer-cloud/natural-language-understanding-nodejs","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fnatural-language-understanding-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fnatural-language-understanding-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fnatural-language-understanding-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watson-developer-cloud%2Fnatural-language-understanding-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watson-developer-cloud","download_url":"https://codeload.github.com/watson-developer-cloud/natural-language-understanding-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312077,"owners_count":20918344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ibm-bluemix","ibm-watson","natural-language-understanding","watson-services"],"created_at":"2024-07-31T17:01:04.520Z","updated_at":"2025-04-05T09:05:43.272Z","avatar_url":"https://github.com/watson-developer-cloud.png","language":"JavaScript","readme":"\u003ch1 align=\"center\" style=\"border-bottom: none;\"\u003e🚀 Natural Language Understanding Sample Application\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003eThis Node.js app demonstrates some of the Natural Language Understanding service features.\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://travis-ci.org/watson-developer-cloud/natural-language-understanding-nodejs\"\u003e\n    \u003cimg alt=\"Travis\" src=\"https://travis-ci.org/watson-developer-cloud/natural-language-understanding-nodejs.svg?branch=master\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#badge\"\u003e\n    \u003cimg alt=\"semantic-release\" src=\"https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003c/p\u003e\n\nNatural Language Understanding is a collection of APIs that offer text analysis through natural language processing. This set of APIs can analyze text to help you understand its concepts, entities, keywords, sentiment, and more. Additionally, you can create a custom model for some APIs to get specific results that are tailored to your domain.\n\n[![Demo](demo.gif)](https://natural-language-understanding-demo.ng.bluemix.net)\n\n## Prerequisites\n\n1. Sign up for an [IBM Cloud account](https://cloud.ibm.com/registration).\n1. Download the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started#overview).\n1. Create an instance of the Natural Language Understanding service and get your credentials:\n   - Go to the [Natural Language Understanding](https://cloud.ibm.com/catalog/services/natural-language-understanding) page in the IBM Cloud Catalog.\n   - Log in to your IBM Cloud account.\n   - Click **Create**.\n   - Click **Show** to view the service credentials.\n   - Copy the `apikey` value.\n   - Copy the `url` value.\n\n## Configuring the application\n\n1. In the application folder, copy the _.env.example_ file and create a file called _.env_\n\n   ```\n   cp .env.example .env\n   ```\n\n2. Open the _.env_ file and add the service credentials that you obtained in the previous step.\n\n   Example _.env_ file that configures the `apikey` and `url` for a Natural Language Understanding service instance hosted in the US East region:\n\n   ```\n   NATURAL_LANGUAGE_UNDERSTANDING_IAM_APIKEY=X4rbi8vwZmKpXfowaS3GAsA7vdy17Qh7km5D6EzKLHL2\n   NATURAL_LANGUAGE_UNDERSTANDING_URL=https://gateway-wdc.watsonplatform.net/natural-language-understanding/api\n   ```\n\n## Running locally\n\n1. Install the dependencies\n\n   ```\n   npm install\n   ```\n\n1. Run the application\n\n   ```\n   npm start\n   ```\n\n1. View the application in a browser at `localhost:3000`\n\n## Deploying to IBM Cloud as a Cloud Foundry Application\n\n1. Login to IBM Cloud with the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli?topic=cli-getting-started#overview)\n\n   ```\n   ibmcloud login\n   ```\n\n1. Target a Cloud Foundry organization and space.\n\n   ```\n   ibmcloud target --cf\n   ```\n\n1. Edit the _manifest.yml_ file. Change the **name** field to something unique.  \n   For example, `- name: my-app-name`.\n1. Deploy the application\n\n   ```\n   ibmcloud app push\n   ```\n\n1. View the application online at the app URL.  \n   For example: https://my-app-name.mybluemix.net\n\n## Directory structure\n\n```none\n.\n├── app.js                      // express routes\n├── config                      // express configuration\n│   ├── express.js\n│   └── security.js\n├── manifest.yml\n├── package.json\n├── public                      // static resources\n├── server.js                   // entry point\n├── test                        // tests\n└── views                       // react components\n```\n\n## License\n\nThis sample code is licensed under Apache 2.0.  \nFull license text is available in [LICENSE](LICENSE).\n\n## Contributing\n\nSee [CONTRIBUTING](CONTRIBUTING.md).\n\n## Open Source @ IBM\n\nFind more open source projects on the\n[IBM Github Page](http://ibm.github.io/).\n","funding_links":[],"categories":["函式庫","Data \u0026 AI","Packages"],"sub_categories":["服務","Services"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fnatural-language-understanding-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatson-developer-cloud%2Fnatural-language-understanding-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatson-developer-cloud%2Fnatural-language-understanding-nodejs/lists"}