@@ -7,26 +7,34 @@ You can run your desired `_endpoint_.js` file to see it in action.
77For example, run ` node categories.js --key <your_key> ` if you want to see the categories
88functionality demonstrated.
99
10+ If you would like to run against an alternate url, you can use the optional --url <alt_url> argument.
11+
12+ To run all of the examples, use the command line:
13+ ` find -maxdepth 1 -name "*.js" -exec node {} --key api_key --url alt_url \; `
14+ or execute:
15+ ` run_all.sh `
16+
1017All files require you to input your Rosette API User Key after ` --key ` to run.
1118For example: ` node ping.js --key 1234567890 `
1219
1320Each example, when run, prints its output to the console.
1421
1522| File Name | What it does |
1623| ------------- | ------------- |
17- | categories.php | Gets the category of a document at a URL |
18- | entities.php | Gets the entities from a piece of text |
19- | entities_linked.php | Gets the linked (to Wikipedia) entities from a piece of text |
20- | info.php | Gets information about Rosette API |
21- | language.php | Gets the language of a piece of text |
22- | matched-name.php | Gets the similarity score of two names |
23- | morphology_complete.php | Gets the complete morphological analysis of a piece of text|
24- | morphology_compound-components.php | Gets the de-compounded words from a piece of text |
25- | morphology_han-readings.php | Gets the Chinese words from a piece of text |
26- | morphology_lemmas.php | Gets the lemmas of words from a piece of text |
27- | morphology_parts-of-speech.php | Gets the part-of-speech tags for words in a piece of text |
28- | ping.php | Pings the Rosette API to check for reachability |
29- | sentences.php | Gets the sentences from a piece of text |
30- | sentiment.php | Gets the sentiment of a local file |
31- | tokens.php | Gets the tokens (words) from a piece of text |
32- | translated-name.php | Translates a name from one language to another |
24+ | base64_input.js | Gets the entities from a piece of base64 encoded text |
25+ | categories.js | Gets the category of a document at a URL |
26+ | entities.js | Gets the entities from a piece of text |
27+ | entities_linked.js | Gets the linked (to Wikipedia) entities from a piece of text |
28+ | info.js | Gets information about Rosette API |
29+ | language.js | Gets the language of a piece of text |
30+ | matched-name.js | Gets the similarity score of two names |
31+ | morphology_complete.js | Gets the complete morphological analysis of a piece of text|
32+ | morphology_compound-components.js | Gets the de-compounded words from a piece of text |
33+ | morphology_han-readings.js | Gets the Chinese words from a piece of text |
34+ | morphology_lemmas.js | Gets the lemmas of words from a piece of text |
35+ | morphology_parts-of-speech.js | Gets the part-of-speech tags for words in a piece of text |
36+ | ping.js | Pings the Rosette API to check for reachability |
37+ | sentences.js | Gets the sentences from a piece of text |
38+ | sentiment.js | Gets the sentiment of a local file |
39+ | tokens.js | Gets the tokens (words) from a piece of text |
40+ | translated-name.js | Translates a name from one language to another |
0 commit comments