|
1 |
| -[](https://travis-ci.org/rosette-api/nodejs) [](https://badge.fury.io/js/rosette-api) |
2 |
| - |
3 |
| -# rosette-api |
4 |
| - |
5 |
| -This is the Rosette API client binding for node.js. |
6 |
| - |
7 |
| -## Getting Started |
8 |
| -Install the module with: `npm install rosette-api` |
9 |
| - |
10 |
| -If the version you are using is not [the latest from npm](https://www.npmjs.com/package/rosette-api) (or `npm show rosette-api@* version`), |
11 |
| -please check for its [**compatibilty with api.rosette.com**](https://developer.rosette.com/features-and-functions?javascript). |
12 |
| -If you have an on-premise version of Rosette API server, please contact support for |
13 |
| -binding compatibility with your installation. |
14 |
| - |
15 |
| -To check your installed version: |
16 |
| - |
17 |
| -- `npm list rosette-api` for local installation |
18 |
| -- `npm list -g rosette-api` for global installation |
19 |
| - |
20 |
| -https://www.npmjs.com/package/rosette-api |
21 |
| - |
22 |
| -## Docker ## |
23 |
| -A Docker image for running the examples against the compiled source library is available on Docker Hub. |
24 |
| - |
25 |
| -Command: `docker run -e API_KEY=api-key -v "<binding root directory>:/source" rosetteapi/docker-nodejs` |
26 |
| - |
27 |
| -Additional environment settings: |
28 |
| -`-e ALT_URL=<alternative URL>` |
29 |
| -`-e FILENAME=<single filename>` |
30 |
| - |
31 |
| - |
32 |
| -## Example using the Rosette API language detection endpoint |
33 |
| -```javascript |
34 |
| -var Api = require('rosette-api'); |
35 |
| - |
36 |
| -var api = new Api(API_KEY); |
37 |
| -var endpoint = "language"; |
38 |
| -var content = "Por favor Señorita, says the man."; |
39 |
| -api.parameters.content = content; |
40 |
| - |
41 |
| -api.rosette(endpoint, function(err, res){ |
42 |
| - if(err){ |
43 |
| - console.log(err); |
44 |
| - } else { |
45 |
| - console.log(JSON.stringify(res, null, 2)); |
46 |
| - } |
47 |
| -}); |
48 |
| -``` |
49 |
| -## API Parameters |
50 |
| -| Parameter | Endpoint | Required |
51 |
| -| ------------- |------------- |------------- |
52 |
| -| content | categories, entities, language, morphology, relationships, sentences, sentiment, tokens, topics, transliteration | Either content or contentUri required, transliteration requires content only | |
53 |
| -| contentUri | categories, entities, language, morphology, relationships, sentences, sentiment, tokens, topics | Either content or contentUri required | |
54 |
| -| language | categories, entities, language, morphology, relationships, sentences, sentiment, tokens, topics, name similarity | No | |
55 |
| -| documentFile | categories, entities, language, morphology, relationships, sentences, sentiment, tokens, topics | No | |
56 |
| -| name1 | name similarity | Yes | |
57 |
| -| name2 | name similarity| Yes | |
58 |
| -| name | name translation | Yes | |
59 |
| -| names | name deduplication | Yes | |
60 |
| -| targetLanguage | name translation, transliteration (No) | Yes | |
61 |
| -| entityType | name translation | No | |
62 |
| -| sourceLanguageOfOrigin | name translation | No | |
63 |
| -| sourceLanguageOfUse | name translation | No | |
64 |
| -| sourceLanguage | transliteration | No | |
65 |
| -| sourceScript | name translation, transliteration | No | |
66 |
| -| targetScript | name translation, transliteration | No | |
67 |
| -| targetScheme | name translation | No | |
68 |
| -| options | relationships | No | |
69 |
| -| accuracyMode | relationships | Yes | |
70 |
| -| explain | sentiment | No | |
71 |
| -| morphology | morphology | Yes | |
72 |
| - |
73 |
| -## Additional Examples |
74 |
| -See [examples](examples). |
75 |
| - |
76 |
| -## API Documentation |
77 |
| -See [documentation](http://rosette-api.github.io/nodejs) |
78 |
| - |
79 |
| -## Release Notes |
80 |
| -See [wiki](https://github.com/rosette-api/nodejs/wiki/Release-Notes) |
81 |
| - |
82 |
| -## Additional Information |
83 |
| -See [Rosette API site](https://developer.rosette.com/) |
| 1 | +<a href="https://www.rosette.com"><img src="https://s3.amazonaws.com/styleguide.basistech.com/logos/rosette-logo.png" width="181" height="47" /></a> |
| 2 | + |
| 3 | +--- |
| 4 | + |
| 5 | +[](https://travis-ci.org/rosette-api/nodejs) |
| 6 | +[](https://badge.fury.io/js/rosette-api) |
| 7 | + |
| 8 | + |
| 9 | +## Rosette API |
| 10 | +The Rosette Text Analytics Platform uses natural language processing, statistical modeling, and machine learning to |
| 11 | +analyze unstructured and semi-structured text across 364 language-encoding-script combinations, revealing valuable |
| 12 | +information and actionable data. Rosette provides endpoints for extracting entities and relationships, translating and |
| 13 | +comparing the similarity of names, categorizing and adding linguistic tags to text and more. |
| 14 | + |
| 15 | +## Rosette API Access |
| 16 | +- Rosette Cloud [Sign Up](https://developer.rosette.com/signup) |
| 17 | +- Rosette Enterprise [Evaluation](https://www.rosette.com/product-eval/) |
| 18 | + |
| 19 | +## Quick Start |
| 20 | + |
| 21 | +#### Installation |
| 22 | +`npm install rosette-api` |
| 23 | + |
| 24 | +#### Examples |
| 25 | +View small example programs for each Rosette endpoint in the [examples](https://github.com/rosette-api/nodejs/tree/develop/examples) directory. |
| 26 | + |
| 27 | +#### Documentation & Support |
| 28 | +- [Binding API](https://rosette-api.github.io/nodejs/) |
| 29 | +- [Rosette Platform API](https://developer.rosette.com/features-and-functions) |
| 30 | +- [Binding Release Notes](https://github.com/rosette-api/nodejs/wiki/Release-Notes) |
| 31 | +- [Rosette Platform Release Notes](https://support.rosette.com/hc/en-us/articles/360018354971-Release-Notes) |
| 32 | +- [Binding/Rosette Platform Compatibility](https://developer.rosette.com/features-and-functions?javascript#) |
| 33 | +- [Support](https://support.rosette.com) |
| 34 | +- [Binding License: Apache 2.0](https://github.com/rosette-api/nodejs/blob/develop/LICENSE.txt) |
| 35 | + |
| 36 | +## Binding Developer Information |
| 37 | +If you are modifying the binding code, please refer to the [developer README](https://github.com/rosette-api/nodejs/blob/develop/DEVELOPER.md) file. |
0 commit comments