Skip to content

Commit 1367e2e

Browse files
author
Hannah
committed
removed entities-linked
updated examples so that they can be pasted into the terminal using \ added regex to run-examples to remove backslashes so it runs to completion
1 parent b1fb489 commit 1367e2e

18 files changed

+99
-105
lines changed

examples/categories.curl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"contentUri": "http://www.onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/" }'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"contentUri": "http://www.onlocationvacations.com/2015/03/05/the-new-ghostbusters-movie-begins-filming-in-boston-in-june/" }' \
77
"https://api.rosette.com/rest/v1/categories"

examples/entities.curl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# to improve performance, and if you don't need the QID, set this option inside json in -d flag
22
# "options": {"linkEntities": false }}
3-
curl -X POST
4-
-H "X-RosetteAPI-Key: your_api_key"
5-
-H "Content-Type: application/json"
6-
-H "Accept: application/json"
7-
-H "Cache-Control: no-cache"
8-
-d '{"content": "Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS", "genre": "social-media" }'
3+
curl -X POST \
4+
-H "X-RosetteAPI-Key: your_api_key" \
5+
-H "Content-Type: application/json" \
6+
-H "Accept: application/json" \
7+
-H "Cache-Control: no-cache" \
8+
-d '{"content": "Bill Murray will appear in new Ghostbusters film: Dr. Peter Venkman was spotted filming a cameo in Boston this… http://dlvr.it/BnsFfS", "genre": "social-media" }' \
99
"https://api.rosette.com/rest/v1/entities"

examples/entities_linked.curl

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/info.curl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
curl -X GET
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
1+
curl -X GET \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
66
"https://api.rosette.com/rest/v1/info/"

examples/language.curl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"content": "Por favor Señorita, says the man." }'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "Por favor Señorita, says the man." }' \
77
"https://api.rosette.com/rest/v1/language"

examples/morphology_complete.curl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"content": "The quick brown fox jumped over the lazy dog. Yes he did."}'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "The quick brown fox jumped over the lazy dog. Yes he did."}' \
77
"https://api.rosette.com/rest/v1/morphology/complete"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"content": "Rechtsschutzversicherungsgesellschaften"}'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "Rechtsschutzversicherungsgesellschaften"}' \
77
"https://api.rosette.com/rest/v1/morphology/compound-components"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"content": "北京大学生物系主任办公室内部会议"}'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "北京大学生物系主任办公室内部会议"}' \
77
"https://api.rosette.com/rest/v1/morphology/han-readings"

examples/morphology_lemmas.curl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}' \
77
"https://api.rosette.com/rest/v1/morphology/lemmas"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
curl -X POST
2-
-H "X-RosetteAPI-Key: your_api_key"
3-
-H "Content-Type: application/json"
4-
-H "Accept: application/json"
5-
-H "Cache-Control: no-cache"
6-
-d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}'
1+
curl -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"content": "The fact is that the geese just went back to get a rest and I\u0027m not banking on their return soon"}' \
77
"https://api.rosette.com/rest/v1/morphology/parts-of-speech"

0 commit comments

Comments
 (0)