File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ if [ $# -lt 1 ]; then
4
4
echo " usage: $0 api_key [alternate_url]"
5
5
exit 1
6
6
fi
7
- embeddings_data =" Cambridge, Massachusetts"
7
+ semantic_vectors_data =" Cambridge, Massachusetts"
8
8
9
9
if [ -z " $2 " ]; then
10
10
url=" https://api.rosette.com/rest/v1/semantics/vector"
@@ -16,4 +16,4 @@ curl -s "$url" \
16
16
-H " X-RosetteAPI-Key: $1 " \
17
17
-H ' Content-Type:application/json' \
18
18
-H ' Accept:application/json' \
19
- -d " {\" content\" : \" $embeddings_data \" }"
19
+ -d " {\" content\" : \" $semantic_vectors_data \" }"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ if [ $# -lt 1 ]; then
4
4
echo " usage: $0 api_key [alternate_url]"
5
5
exit 1
6
6
fi
7
- data =" spy"
7
+ similar_terms_data =" spy"
8
8
opts=" {\" resultLanguages\" : [\" spa\" , \" deu\" , \" jpn\" ]}"
9
9
10
10
if [ -z " $2 " ]; then
@@ -17,4 +17,4 @@ curl -s "$url" \
17
17
-H " X-RosetteAPI-Key: $1 " \
18
18
-H ' Content-Type:application/json' \
19
19
-H ' Accept:application/json' \
20
- -d " {\" content\" : \" $data \" , \" options\" : $opts }"
20
+ -d " {\" content\" : \" $similar_terms_data \" , \" options\" : $opts }"
You can’t perform that action at this time.
0 commit comments