https://github.com/bkdev98/google-nlp
Google Natural Language Processing API for Deep Connect
https://github.com/bkdev98/google-nlp
Last synced: 12 months ago
JSON representation
Google Natural Language Processing API for Deep Connect
- Host: GitHub
- URL: https://github.com/bkdev98/google-nlp
- Owner: bkdev98
- Created: 2020-06-24T04:57:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T03:44:26.000Z (about 3 years ago)
- Last Synced: 2025-01-01T09:07:44.527Z (about 1 year ago)
- Language: JavaScript
- Size: 516 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Natural Language Processing API for Deep Connect
## Development
- Get `GOOGLE_CLOUD_KEYFILE`:
1. In the Cloud Console, enable **Cloud Natural Language API**.
2. Go to the **Create service account key** page.
3. From the **Service account** list, select **New service account**.
4. In the **Service account name** field, enter a name.
5. From the **Role** list, select **Project** > **Owner**.
6. Click **Create**. Download the JSON file to **src** folder. Update filename in **constants.js** or in env.
- Run `yarn && yarn dev`.
## Demo
```shell
curl --location --request POST 'http://localhost:7819/v1/analyze' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "Hello I'\''m Hiep, I live in district 4th, Ho Chi Minh City. I work at Inapps Technology Company"
}'
```