Skip to content

Commit 3036a43

Browse files
RD-2427 updated var names
1 parent 3755e71 commit 3036a43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/semantic_vectors.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ $# -lt 1 ]; then
44
echo "usage: $0 api_key [alternate_url]"
55
exit 1
66
fi
7-
embeddings_data="Cambridge, Massachusetts"
7+
semantic_vectors_data="Cambridge, Massachusetts"
88

99
if [ -z "$2" ]; then
1010
url="https://api.rosette.com/rest/v1/semantics/vector"
@@ -16,4 +16,4 @@ curl -s "$url" \
1616
-H "X-RosetteAPI-Key: $1" \
1717
-H 'Content-Type:application/json' \
1818
-H 'Accept:application/json' \
19-
-d "{\"content\": \"$embeddings_data\"}"
19+
-d "{\"content\": \"$semantic_vectors_data\"}"

examples/similar_terms.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ $# -lt 1 ]; then
44
echo "usage: $0 api_key [alternate_url]"
55
exit 1
66
fi
7-
data="spy"
7+
similar_terms_data="spy"
88
opts="{\"resultLanguages\": [\"spa\", \"deu\", \"jpn\"]}"
99

1010
if [ -z "$2" ]; then
@@ -17,4 +17,4 @@ curl -s "$url" \
1717
-H "X-RosetteAPI-Key: $1" \
1818
-H 'Content-Type:application/json' \
1919
-H 'Accept:application/json' \
20-
-d "{\"content\": \"$data\", \"options\": $opts}"
20+
-d "{\"content\": \"$similar_terms_data\", \"options\": $opts}"

0 commit comments

Comments
 (0)