Septzzz commited on
Commit
a2a9aa6
·
verified ·
1 Parent(s): 8ba3cef

Upload folder using huggingface_hub (part 23)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. toolbench/toolenv/tools/Text_Analysis/text_sentiment_analysis.json +32 -0
  2. toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer.json +33 -0
  3. toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer_api.json +37 -0
  4. toolbench/toolenv/tools/Text_Analysis/text_sentiment_api.json +31 -0
  5. toolbench/toolenv/tools/Text_Analysis/text_similarity.json +174 -0
  6. toolbench/toolenv/tools/Text_Analysis/text_similarity/api.py +31 -0
  7. toolbench/toolenv/tools/Text_Analysis/text_summarization.json +30 -0
  8. toolbench/toolenv/tools/Text_Analysis/text_summarizer.json +45 -0
  9. toolbench/toolenv/tools/Text_Analysis/text_summarizer_api.json +37 -0
  10. toolbench/toolenv/tools/Text_Analysis/text_summarizer_v4/api.py +29 -0
  11. toolbench/toolenv/tools/Text_Analysis/text_summerizer.json +30 -0
  12. toolbench/toolenv/tools/Text_Analysis/text_talking_point_api.json +31 -0
  13. toolbench/toolenv/tools/Text_Analysis/text_to_emotions.json +65 -0
  14. toolbench/toolenv/tools/Text_Analysis/text_to_emotions/api.py +113 -0
  15. toolbench/toolenv/tools/Text_Analysis/text_to_speech.json +24 -0
  16. toolbench/toolenv/tools/Text_Analysis/text_translate.json +74 -0
  17. toolbench/toolenv/tools/Text_Analysis/text_translate/api.py +29 -0
  18. toolbench/toolenv/tools/Text_Analysis/text_url_pdf_summarization.json +52 -0
  19. toolbench/toolenv/tools/Text_Analysis/textanalysisapi.json +350 -0
  20. toolbench/toolenv/tools/Text_Analysis/textanalysisapi/api.py +29 -0
  21. toolbench/toolenv/tools/Text_Analysis/textapi.json +265 -0
  22. toolbench/toolenv/tools/Text_Analysis/textapi/api.py +98 -0
  23. toolbench/toolenv/tools/Text_Analysis/textdiff_text_documents_comparison_api.json +89 -0
  24. toolbench/toolenv/tools/Text_Analysis/textgears.json +396 -0
  25. toolbench/toolenv/tools/Text_Analysis/textmind.json +26 -0
  26. toolbench/toolenv/tools/Text_Analysis/textnerd_io.json +247 -0
  27. toolbench/toolenv/tools/Text_Analysis/textrewrite_com.json +90 -0
  28. toolbench/toolenv/tools/Text_Analysis/textrewrite_com/api.py +33 -0
  29. toolbench/toolenv/tools/Text_Analysis/texttoimage.json +30 -0
  30. toolbench/toolenv/tools/Text_Analysis/the_best_keyword_density_analyzer_100_percent_accuracy_approved.json +26 -0
  31. toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms.json +105 -0
  32. toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms/api.py +50 -0
  33. toolbench/toolenv/tools/Text_Analysis/ticket_classification.json +24 -0
  34. toolbench/toolenv/tools/Text_Analysis/tigon_cv_parser.json +37 -0
  35. toolbench/toolenv/tools/Text_Analysis/time_interpreter.json +54 -0
  36. toolbench/toolenv/tools/Text_Analysis/title_generation.json +24 -0
  37. toolbench/toolenv/tools/Text_Analysis/tldr.json +31 -0
  38. toolbench/toolenv/tools/Text_Analysis/tldr_summary.json +24 -0
  39. toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis.json +98 -0
  40. toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis/api.py +74 -0
  41. toolbench/toolenv/tools/Text_Analysis/topic_tagging.json +263 -0
  42. toolbench/toolenv/tools/Text_Analysis/topic_tagging/api.py +30 -0
  43. toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments.json +100 -0
  44. toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments/api.py +35 -0
  45. toolbench/toolenv/tools/Text_Analysis/translator.json +70 -0
  46. toolbench/toolenv/tools/Text_Analysis/treediff.json +45 -0
  47. toolbench/toolenv/tools/Text_Analysis/turbo_nlp.json +125 -0
  48. toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle.json +300 -0
  49. toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle/api.py +417 -0
  50. toolbench/toolenv/tools/Text_Analysis/udyog_aadhaar_ocr.json +30 -0
toolbench/toolenv/tools/Text_Analysis/text_sentiment_analysis.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_f2e96509-50f3-4438-a050-448bff25892d",
3
+ "tool_description": "Analyze and determine the sentiment (positive or negative) expressed in text data. With this API, you can integrate sentiment analysis capabilities into your applications, platforms, or services, allowing you to gain insights into the emotions, opinions, or attitudes conveyed within textual content.",
4
+ "home_url": "https://rapidapi.com/evlar-evlar-default/api/text-sentiment-analysis5/",
5
+ "name": "Text Sentiment Analysis",
6
+ "title": "Text Sentiment Analysis",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Sentiment Analysis",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 1447,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 8.6,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "text-sentiment-analysis5.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Detect Sentiment",
20
+ "url": "https://text-sentiment-analysis5.p.rapidapi.com/detect",
21
+ "description": "Detect Sentiment",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://text-sentiment-analysis5.p.rapidapi.com/detect\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analysis5.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://text-sentiment-analysis5.p.rapidapi.com/detect\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analysis5.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {}
30
+ }
31
+ ]
32
+ }
toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_a73ff515-ae0c-4ada-a846-f488f067b896",
3
+ "tool_description": "Text Sentiment Analyzer inspects the given text or URL and identifies the prevailing emotional opinion within the text, especially to determine a writer's attitude as positive, negative, or neutral. Sentiment analysis is performed through a specifically trained AI.",
4
+ "home_url": "https://rapidapi.com/inspot/api/text-sentiment-analyzer/",
5
+ "name": "Text Sentiment Analyzer",
6
+ "title": "Text Sentiment Analyzer",
7
+ "pricing": "PAID",
8
+ "tool_name": "Text Sentiment Analyzer",
9
+ "score": null,
10
+ "host": "text-sentiment-analyzer.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Text Sentiment Analyzer",
14
+ "url": "https://text-sentiment-analyzer.p.rapidapi.com/text_sentiment_analyzer",
15
+ "description": "Text Sentiment Analyzer inspects the given text and identifies the prevailing emotional opinion within the text, especially to determine a writer's attitude as positive, negative, or neutral. Sentiment analysis is performed through a specifically trained AI.",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "text",
20
+ "type": "STRING",
21
+ "description": "",
22
+ "default": "Never give up, life goes on and the road does not end. Raise your head and believe in your abilities. You will always attain what you propose to yourself if you really want it."
23
+ }
24
+ ],
25
+ "optional_parameters": [],
26
+ "code": "import requests\n\nurl = \"https://text-sentiment-analyzer.p.rapidapi.com/text_sentiment_analyzer\"\nquerystring = {\"text\": \"Never give up, life goes on and the road does not end. Raise your head and believe in your abilities. You will always attain what you propose to yourself if you really want it.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
27
+ "convert_code": "import requests\n\nurl = \"https://text-sentiment-analyzer.p.rapidapi.com/text_sentiment_analyzer\"\nquerystring = {\"text\": \"Never give up, life goes on and the road does not end. Raise your head and believe in your abilities. You will always attain what you propose to yourself if you really want it.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
28
+ "test_endpoint": "",
29
+ "statuscode": 1,
30
+ "schema": ""
31
+ }
32
+ ]
33
+ }
toolbench/toolenv/tools/Text_Analysis/text_sentiment_analyzer_api.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_8a3bf80d-3eb1-4417-8895-698b448ed839",
3
+ "tool_description": "The Text Sentiment Analyzer API is a tool for analyzing the sentiment of textual data. It uses advanced natural language processing techniques to determine the emotional tone of the text, providing insight into whether the text is positive, negative, or neutral. This API can be used in various applications such as social media monitoring, customer feedback analysis, and market research.",
4
+ "home_url": "https://rapidapi.com/zyla-labs-zyla-labs-default/api/text-sentiment-analyzer-api1/",
5
+ "name": "Text Sentiment Analyzer API",
6
+ "title": "Text Sentiment Analyzer API",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Sentiment Analyzer API",
9
+ "score": {
10
+ "avgServiceLevel": 0,
11
+ "avgLatency": 994,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "text-sentiment-analyzer-api1.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Sentiment Analyzer",
20
+ "url": "https://text-sentiment-analyzer-api1.p.rapidapi.com/sentiment",
21
+ "description": "Pass any text and receive its sentiment score.",
22
+ "method": "POST",
23
+ "required_parameters": [
24
+ {
25
+ "name": "text",
26
+ "type": "STRING",
27
+ "description": "",
28
+ "default": "I've been using this API for some time now. I must say that its performance its excellent. I will recommend this tool"
29
+ }
30
+ ],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://text-sentiment-analyzer-api1.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"I've been using this API for some time now. I must say that its performance its excellent. I will recommend this tool\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://text-sentiment-analyzer-api1.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"I've been using this API for some time now. I must say that its performance its excellent. I will recommend this tool\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-analyzer-api1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": ""
35
+ }
36
+ ]
37
+ }
toolbench/toolenv/tools/Text_Analysis/text_sentiment_api.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_62777a3d-5775-44f6-a2b2-3f66245ea921",
3
+ "tool_description": "The Text Sentiment API on RapidAPI is one of the fastest and most robust sentiment analysis APIs. It returns values of POSITIVE, NEGATIVE, NEUTRAL, or MIXED and the associated probabilities (confidence) that a text has these sentiments. You can read more about the APi in this blog post: https://jj-espinoza-la.medium.com/the-benefits-and-uses-of-sentiment-analysis-apis-810de5f40fce",
4
+ "home_url": "https://rapidapi.com/jjespinozala/api/text-sentiment-api/",
5
+ "name": "Text Sentiment API",
6
+ "title": "Text Sentiment API",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Sentiment API",
9
+ "score": null,
10
+ "host": "text-sentiment-api.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "sentiment",
14
+ "url": "https://text-sentiment-api.p.rapidapi.com/sentiment",
15
+ "description": "This endpoint returns the sentiment of a given text.",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "text",
20
+ "type": "STRING",
21
+ "description": "",
22
+ "default": "Negative is greater than the sum of its flawed parts."
23
+ }
24
+ ],
25
+ "optional_parameters": [],
26
+ "code": "import requests\n\nurl = \"https://text-sentiment-api.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"Negative is greater than the sum of its flawed parts.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
27
+ "convert_code": "import requests\n\nurl = \"https://text-sentiment-api.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": \"Negative is greater than the sum of its flawed parts.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-sentiment-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
28
+ "test_endpoint": ""
29
+ }
30
+ ]
31
+ }
toolbench/toolenv/tools/Text_Analysis/text_similarity.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "Text Similarity",
3
+ "tool_description": "Evaluate the similarity of two words, sentences, or paragraphs",
4
+ "title": "Text Similarity",
5
+ "pricing": "FREEMIUM",
6
+ "score": {
7
+ "avgServiceLevel": 100,
8
+ "avgLatency": 180,
9
+ "avgSuccessRate": 100,
10
+ "popularityScore": 9.8,
11
+ "__typename": "Score"
12
+ },
13
+ "home_url": "https://rapidapi.com/twinword/api/text-similarity/",
14
+ "host": "twinword-text-similarity-v1.p.rapidapi.com",
15
+ "api_list": [
16
+ {
17
+ "name": "Text Similarity (get)",
18
+ "url": "https://twinword-text-similarity-v1.p.rapidapi.com/similarity/",
19
+ "description": "Evaluate the similarity of two words, sentences, or paragraphs.",
20
+ "method": "GET",
21
+ "required_parameters": [
22
+ {
23
+ "name": "text1",
24
+ "type": "STRING",
25
+ "description": "Input the first text to compare.",
26
+ "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus."
27
+ },
28
+ {
29
+ "name": "text2",
30
+ "type": "STRING",
31
+ "description": "Input a second text to compare its similarity with the first text.",
32
+ "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus."
33
+ }
34
+ ],
35
+ "optional_parameters": [],
36
+ "code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": text1, \"text2\": text2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
37
+ "statuscode": 200,
38
+ "body": {
39
+ "similarity": 0.90790287408326,
40
+ "value": 185511.27238341,
41
+ "version": "4.0.0",
42
+ "author": "twinword inc.",
43
+ "email": "feedback@twinword.com",
44
+ "result_code": "200",
45
+ "result_msg": "Success"
46
+ },
47
+ "headers": {
48
+ "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400",
49
+ "cf-cache-status": "DYNAMIC",
50
+ "cf-ray": "599e9ee73ecdef59-NRT",
51
+ "cf-request-id": "02f701a4840000ef59580ef200000001",
52
+ "content-type": "application/json",
53
+ "date": "Wed, 27 May 2020 09:13:35 GMT",
54
+ "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
55
+ "server": "RapidAPI-1.1.7",
56
+ "set-cookie": [
57
+ "__cfduid=da2ca46aa5b3559ce34814b65580e4bfd1590570814; expires=Fri, 26-Jun-20 09:13:34 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure"
58
+ ],
59
+ "strict-transport-security": "max-age=15552000; includeSubDomains; preload",
60
+ "x-content-type-options": "nosniff",
61
+ "x-rapidapi-region": "AWS - ap-northeast-1",
62
+ "x-rapidapi-version": "1.1.7",
63
+ "content-length": "169",
64
+ "connection": "Close"
65
+ },
66
+ "schema": {
67
+ "properties": {
68
+ "author": {
69
+ "type": "string"
70
+ },
71
+ "email": {
72
+ "format": "email",
73
+ "type": "string"
74
+ },
75
+ "result_code": {
76
+ "format": "color",
77
+ "type": "string"
78
+ },
79
+ "result_msg": {
80
+ "type": "string"
81
+ },
82
+ "similarity": {
83
+ "type": "number"
84
+ },
85
+ "value": {
86
+ "type": "number"
87
+ },
88
+ "version": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ "type": "object"
93
+ }
94
+ },
95
+ {
96
+ "name": "Text Similarity (post)",
97
+ "url": "https://twinword-text-similarity-v1.p.rapidapi.com/similarity/",
98
+ "description": "Evaluate the similarity of two words, sentences, or paragraphs.",
99
+ "method": "POST",
100
+ "required_parameters": [
101
+ {
102
+ "name": "text1",
103
+ "type": "STRING",
104
+ "description": "Enter the first text to compare.",
105
+ "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus."
106
+ },
107
+ {
108
+ "name": "text2",
109
+ "type": "STRING",
110
+ "description": "Input a second text to compare its similarity with the first text.",
111
+ "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus."
112
+ }
113
+ ],
114
+ "optional_parameters": [],
115
+ "code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": text1, \"text2\": text2}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
116
+ "statuscode": 200,
117
+ "body": {
118
+ "author": "twinword inc.",
119
+ "email": "help@twinword.com",
120
+ "result_code": "200",
121
+ "result_msg": "Success",
122
+ "similarity": 0.86882813106215,
123
+ "value": 2463079.7207981,
124
+ "version": "4.0.0"
125
+ },
126
+ "headers": {
127
+ "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400",
128
+ "cf-cache-status": "DYNAMIC",
129
+ "cf-ray": "599e9f585cb8f8df-NRT",
130
+ "cf-request-id": "02f701eb330000f8df1834c200000001",
131
+ "content-type": "application/json",
132
+ "date": "Wed, 27 May 2020 09:13:53 GMT",
133
+ "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
134
+ "server": "RapidAPI-1.1.7",
135
+ "set-cookie": [
136
+ "__cfduid=dd09c4ecef586b6933065e5fbc454cdff1590570832; expires=Fri, 26-Jun-20 09:13:52 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure"
137
+ ],
138
+ "strict-transport-security": "max-age=15552000; includeSubDomains; preload",
139
+ "x-content-type-options": "nosniff",
140
+ "x-rapidapi-region": "AWS - ap-northeast-1",
141
+ "x-rapidapi-version": "1.1.7",
142
+ "content-length": "169",
143
+ "connection": "Close"
144
+ },
145
+ "schema": {}
146
+ },
147
+ {
148
+ "name": "Text Similarity (post)",
149
+ "url": "https://twinword-text-similarity-v1.p.rapidapi.com/similarity/",
150
+ "description": "Evaluate the similarity of two words, sentences, or paragraphs.",
151
+ "method": "POST",
152
+ "required_parameters": [
153
+ {
154
+ "name": "text1",
155
+ "type": "STRING",
156
+ "description": "Enter the first text to compare.",
157
+ "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus."
158
+ },
159
+ {
160
+ "name": "text2",
161
+ "type": "STRING",
162
+ "description": "Input a second text to compare its similarity with the first text.",
163
+ "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus."
164
+ }
165
+ ],
166
+ "optional_parameters": [],
167
+ "code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
168
+ "convert_code": "import requests\n\nurl = \"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/\"\nquerystring = {\"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-text-similarity-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
169
+ "test_endpoint": "",
170
+ "statuscode": 200,
171
+ "schema": {}
172
+ }
173
+ ]
174
+ }
toolbench/toolenv/tools/Text_Analysis/text_similarity/api.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def text_similarity_get(text1: str, text2: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Evaluate the similarity of two words, sentences, or paragraphs."
12
+ text1: Input the first text to compare.
13
+ text2: Input a second text to compare its similarity with the first text.
14
+
15
+ """
16
+ url = f"https://twinword-text-similarity-v1.p.rapidapi.com/similarity/"
17
+ querystring = {'text1': text1, 'text2': text2, }
18
+
19
+ headers = {
20
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
21
+ "X-RapidAPI-Host": "twinword-text-similarity-v1.p.rapidapi.com"
22
+ }
23
+
24
+
25
+ response = requests.get(url, headers=headers, params=querystring)
26
+ try:
27
+ observation = response.json()
28
+ except:
29
+ observation = response.text
30
+ return observation
31
+
toolbench/toolenv/tools/Text_Analysis/text_summarization.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_62b5d0f9-2a7f-405e-8a60-1d06fc3fcfdf",
3
+ "tool_description": "Summarizes text, in almost abstractive way. ",
4
+ "home_url": "https://rapidapi.com/lakinekaki7/api/text-summarization8/",
5
+ "name": "Text Summarization",
6
+ "title": "Text Summarization",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Summarization",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 838,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 8.2,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "text-summarization8.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Text Summarization",
20
+ "url": "https://text-summarization8.p.rapidapi.com/summarize",
21
+ "description": "Summarizes a text with paraphrasing. It extracts the essential information and removes redundancies.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://text-summarization8.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarization8.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://text-summarization8.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarization8.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ]
30
+ }
toolbench/toolenv/tools/Text_Analysis/text_summarizer.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_6fe50519-e1b5-4c47-96b0-3ff1754b406b",
3
+ "tool_description": "Connexun's \"Text Summarizer\" API generates an extractive summary from any given text. Test our api for free and do not hesitate to reach us out for further information.",
4
+ "home_url": "https://rapidapi.com/connexun-srl-connexun-srl-default/api/text-summarizer1/",
5
+ "name": "Text Summarizer",
6
+ "title": "Text Summarizer",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Summarizer",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 1318,
12
+ "avgSuccessRate": 75,
13
+ "popularityScore": 9.2,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "text-summarizer1.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "/summarize",
20
+ "url": "https://text-summarizer1.p.rapidapi.com/summarize",
21
+ "description": "Summarizes a valid input content and returns the highest ranked sentences from the text. These sentences in the order of appearence in the main text are then combined, which represents the most weighted sentences of the text also called summary.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/summarize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 1,
29
+ "schema": ""
30
+ },
31
+ {
32
+ "name": "/detect-language",
33
+ "url": "https://text-summarizer1.p.rapidapi.com/detect-language",
34
+ "description": "The endpoint takes as input the text that needs to be analyzed and returns with the probability the language in which the text is written. If the text contains multiple language, the response is an array of objects each specifying the language detected and the corresponding probability.",
35
+ "method": "POST",
36
+ "required_parameters": [],
37
+ "optional_parameters": [],
38
+ "code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/detect-language\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
39
+ "convert_code": "import requests\n\nurl = \"https://text-summarizer1.p.rapidapi.com/detect-language\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
40
+ "test_endpoint": "",
41
+ "statuscode": 1,
42
+ "schema": ""
43
+ }
44
+ ]
45
+ }
toolbench/toolenv/tools/Text_Analysis/text_summarizer_api.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_bf3e42aa-cdde-4230-aaad-81b2c24e534d",
3
+ "tool_description": "The Text Summarizer API is a tool that automatically creates brief, condensed versions of the original text. This API can be used in various applications such as news aggregation, content curation, and educational materials.",
4
+ "home_url": "https://rapidapi.com/zyla-labs-zyla-labs-default/api/text-summarizer-api/",
5
+ "name": "Text Summarizer API",
6
+ "title": "Text Summarizer API",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Summarizer API",
9
+ "score": null,
10
+ "host": "text-summarizer-api.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Summarizer",
14
+ "url": "https://text-summarizer-api.p.rapidapi.com/summarizer",
15
+ "description": "With this Endpoint, you will be able to summarize your text. Select what percentage of the words you want to summarize, and you will be retrieved with the general idea of your text or article!",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "text",
20
+ "type": "STRING",
21
+ "description": "The text string you want to summarize.",
22
+ "default": "In the modern digital environment, content that is quick, comprehensible, and simple to read is essential. You want your material to be reader-friendly whether you are presenting a learning module for a class, writing about a product or service, or simply journaling your most recent exploits. Many individuals prefer things to be tidy, succinct, and straightforward. So, tools for paraphrasing can be useful in this situation."
23
+ },
24
+ {
25
+ "name": "output_percent",
26
+ "type": "STRING",
27
+ "description": "Percent of the original text to be returned. Values range from 10 to 100",
28
+ "default": "40"
29
+ }
30
+ ],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://text-summarizer-api.p.rapidapi.com/summarizer\"\nquerystring = {\"text\": \"In the modern digital environment, content that is quick, comprehensible, and simple to read is essential. You want your material to be reader-friendly whether you are presenting a learning module for a class, writing about a product or service, or simply journaling your most recent exploits. Many individuals prefer things to be tidy, succinct, and straightforward. So, tools for paraphrasing can be useful in this situation.\", \"output_percent\": \"40\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://text-summarizer-api.p.rapidapi.com/summarizer\"\nquerystring = {\"text\": \"In the modern digital environment, content that is quick, comprehensible, and simple to read is essential. You want your material to be reader-friendly whether you are presenting a learning module for a class, writing about a product or service, or simply journaling your most recent exploits. Many individuals prefer things to be tidy, succinct, and straightforward. So, tools for paraphrasing can be useful in this situation.\", \"output_percent\": \"40\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summarizer-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": ""
35
+ }
36
+ ]
37
+ }
toolbench/toolenv/tools/Text_Analysis/text_summarizer_v4/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def ping(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "check if the service is alive"
12
+
13
+ """
14
+ url = f"https://text-summarizer6.p.rapidapi.com/ping"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "text-summarizer6.p.rapidapi.com"
20
+ }
21
+
22
+
23
+ response = requests.get(url, headers=headers, params=querystring)
24
+ try:
25
+ observation = response.json()
26
+ except:
27
+ observation = response.text
28
+ return observation
29
+
toolbench/toolenv/tools/Text_Analysis/text_summerizer.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_a0978a3a-0d86-44bc-9174-f28906e65f62",
3
+ "tool_description": "Summerizes text",
4
+ "home_url": "https://rapidapi.com/meziecjo-rPJ-00A9UcR/api/text-summerizer1/",
5
+ "name": "Text summerizer",
6
+ "title": "Text summerizer",
7
+ "pricing": "FREE",
8
+ "tool_name": "Text summerizer",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 793,
12
+ "avgSuccessRate": 0,
13
+ "popularityScore": 0,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "text-summerizer1.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Text",
20
+ "url": "https://text-summerizer1.p.rapidapi.com/text",
21
+ "description": "Endpoint that accepts a text string",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://text-summerizer1.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summerizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://text-summerizer1.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-summerizer1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ]
30
+ }
toolbench/toolenv/tools/Text_Analysis/text_talking_point_api.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_9e25e5ac-3d9f-4db9-91a9-388dcd48f511",
3
+ "tool_description": "A key phrase is a string containing a noun phrase that describes a particular thing. It generally consists of a noun and the modifiers that distinguish it. For example, \"day\" is a noun; \"a beautiful day\" is a noun phrase that includes an article (\"a\") and an adjective (\"beautiful\"). You can read more about this API in this blog post: https://jj-espinoza-la.medium.com/the-future-of-document-management-how-ai-is-transforming-the-way-we-store-and-retrieve-information-ebff526f83c6",
4
+ "home_url": "https://rapidapi.com/jjespinozala/api/text-talking-point-api/",
5
+ "name": "Text Talking Point API",
6
+ "title": "Text Talking Point API",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text Talking Point API",
9
+ "score": null,
10
+ "host": "text-talking-point-api.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "talking-points",
14
+ "url": "https://text-talking-point-api.p.rapidapi.com/",
15
+ "description": "This returns the talking points from a set of text.",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "text",
20
+ "type": "STRING",
21
+ "description": "",
22
+ "default": "The importance of the presidency of the General Assembly can best be understood within the context of the Organization\u2019s founding ideals and inestimable contributions to human progress. The global reach of the United Nations makes it not only the most representative intergovernmental body on earth, but also the world\u2019s best hope for peace and security, sustainable development and the promotion and protection of human rights and social progress. Its membership, drawn from all corners of the globe, gives it the legitimacy that enables it to speak authoritatively as the voice and conscience of the international community, and to take on complex and daunting global challenges\u2014from intra- and inter-State armed conflicts to natural disasters and massive population displacement\u2014, in the service of humanity. In accordance with the provisions of its Charter, the United Nations is committed to human progress and the preservation of the environment\u2014our collective home. As we all know, our primary mandate, as prescribed in Article 1 of the Charter, is to \u201cmaintain international peace and security, and to that end: to take effective collective measures for the prevention and removal of threats to the peace, and for the suppression of acts of aggression or other breaches of the peace\u201d. In this noble undertaking, cooperation, collaboration, unity and solidarity must be the light we should seek and follow. To its credit, the United Nations has championed human progress on many fronts, including peace operations, human rights, non-discrimination, decolonization, gender equality and sustainable development. The Organization has also supported regional and subregional organizations in initiatives such as the African Union Agenda 2063. The Organization also continues to collaborate with other intergovernmental organizations and civil society in furtherance of its disarmament agenda and in tackling international terrorism, human trafficking, toxic waste dumping, and combating deadly diseases and health pandemics. The Sustainable Development Goals, launched in 2015, as well as the Paris Climate Agreement, capped the Organization\u2019s list of achievements in recent years. Of course, tension over norms and methods and policy differences have also marked exchanges and deliberations in the Organization, sometimes blocking meaningful action when it is most critical. Indeed, some of the more difficult and long-lasting matters of war and peace play out here in the United Nations, quite often pitting countries against each other and getting in the way of the coherent operation of the main organs and other entities of the United Nations. As the most representative of the Organization\u2019s main organs, the General Assembly is a unique forum for promoting multilateralism in the full spectrum of international issues before the Organization. It must never relent in its efforts to bridge gaps and act for the common good. No matter the gravity of the challenge, we are most likely to prevail when all parties work together. Facilitating this will be my foremost objective. In particular, we must continue efforts to strengthen the relationship between the General Assembly and the Security Council and the Economic and Social Council, based on the principle of mutual understanding and respect, in order to ensure the requisite synergy and coherence to better serve the Organization and the world."
23
+ }
24
+ ],
25
+ "optional_parameters": [],
26
+ "code": "import requests\n\nurl = \"https://text-talking-point-api.p.rapidapi.com/\"\nquerystring = {\"text\": \"The importance of the presidency of the General Assembly can best be understood within the context of the Organization\u2019s founding ideals and inestimable contributions to human progress. The global reach of the United Nations makes it not only the most representative intergovernmental body on earth, but also the world\u2019s best hope for peace and security, sustainable development and the promotion and protection of human rights and social progress. Its membership, drawn from all corners of the globe, gives it the legitimacy that enables it to speak authoritatively as the voice and conscience of the international community, and to take on complex and daunting global challenges\u2014from intra- and inter-State armed conflicts to natural disasters and massive population displacement\u2014, in the service of humanity. In accordance with the provisions of its Charter, the United Nations is committed to human progress and the preservation of the environment\u2014our collective home. As we all know, our primary mandate, as prescribed in Article 1 of the Charter, is to \u201cmaintain international peace and security, and to that end: to take effective collective measures for the prevention and removal of threats to the peace, and for the suppression of acts of aggression or other breaches of the peace\u201d. In this noble undertaking, cooperation, collaboration, unity and solidarity must be the light we should seek and follow. To its credit, the United Nations has championed human progress on many fronts, including peace operations, human rights, non-discrimination, decolonization, gender equality and sustainable development. The Organization has also supported regional and subregional organizations in initiatives such as the African Union Agenda 2063. The Organization also continues to collaborate with other intergovernmental organizations and civil society in furtherance of its disarmament agenda and in tackling international terrorism, human trafficking, toxic waste dumping, and combating deadly diseases and health pandemics. The Sustainable Development Goals, launched in 2015, as well as the Paris Climate Agreement, capped the Organization\u2019s list of achievements in recent years. Of course, tension over norms and methods and policy differences have also marked exchanges and deliberations in the Organization, sometimes blocking meaningful action when it is most critical. Indeed, some of the more difficult and long-lasting matters of war and peace play out here in the United Nations, quite often pitting countries against each other and getting in the way of the coherent operation of the main organs and other entities of the United Nations. As the most representative of the Organization\u2019s main organs, the General Assembly is a unique forum for promoting multilateralism in the full spectrum of international issues before the Organization. It must never relent in its efforts to bridge gaps and act for the common good. No matter the gravity of the challenge, we are most likely to prevail when all parties work together. Facilitating this will be my foremost objective. In particular, we must continue efforts to strengthen the relationship between the General Assembly and the Security Council and the Economic and Social Council, based on the principle of mutual understanding and respect, in order to ensure the requisite synergy and coherence to better serve the Organization and the world.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-talking-point-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
27
+ "convert_code": "import requests\n\nurl = \"https://text-talking-point-api.p.rapidapi.com/\"\nquerystring = {\"text\": \"The importance of the presidency of the General Assembly can best be understood within the context of the Organization\u2019s founding ideals and inestimable contributions to human progress. The global reach of the United Nations makes it not only the most representative intergovernmental body on earth, but also the world\u2019s best hope for peace and security, sustainable development and the promotion and protection of human rights and social progress. Its membership, drawn from all corners of the globe, gives it the legitimacy that enables it to speak authoritatively as the voice and conscience of the international community, and to take on complex and daunting global challenges\u2014from intra- and inter-State armed conflicts to natural disasters and massive population displacement\u2014, in the service of humanity. In accordance with the provisions of its Charter, the United Nations is committed to human progress and the preservation of the environment\u2014our collective home. As we all know, our primary mandate, as prescribed in Article 1 of the Charter, is to \u201cmaintain international peace and security, and to that end: to take effective collective measures for the prevention and removal of threats to the peace, and for the suppression of acts of aggression or other breaches of the peace\u201d. In this noble undertaking, cooperation, collaboration, unity and solidarity must be the light we should seek and follow. To its credit, the United Nations has championed human progress on many fronts, including peace operations, human rights, non-discrimination, decolonization, gender equality and sustainable development. The Organization has also supported regional and subregional organizations in initiatives such as the African Union Agenda 2063. The Organization also continues to collaborate with other intergovernmental organizations and civil society in furtherance of its disarmament agenda and in tackling international terrorism, human trafficking, toxic waste dumping, and combating deadly diseases and health pandemics. The Sustainable Development Goals, launched in 2015, as well as the Paris Climate Agreement, capped the Organization\u2019s list of achievements in recent years. Of course, tension over norms and methods and policy differences have also marked exchanges and deliberations in the Organization, sometimes blocking meaningful action when it is most critical. Indeed, some of the more difficult and long-lasting matters of war and peace play out here in the United Nations, quite often pitting countries against each other and getting in the way of the coherent operation of the main organs and other entities of the United Nations. As the most representative of the Organization\u2019s main organs, the General Assembly is a unique forum for promoting multilateralism in the full spectrum of international issues before the Organization. It must never relent in its efforts to bridge gaps and act for the common good. No matter the gravity of the challenge, we are most likely to prevail when all parties work together. Facilitating this will be my foremost objective. In particular, we must continue efforts to strengthen the relationship between the General Assembly and the Security Council and the Economic and Social Council, based on the principle of mutual understanding and respect, in order to ensure the requisite synergy and coherence to better serve the Organization and the world.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-talking-point-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
28
+ "test_endpoint": ""
29
+ }
30
+ ]
31
+ }
toolbench/toolenv/tools/Text_Analysis/text_to_emotions.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_6ae26e73-e4d4-4d34-bb78-af9a769580bc",
3
+ "tool_description": "Text To Emotions API, a powerful text analysis tool designed to unveil the underlying emotions in any given text. This innovative API takes textual input and processes it to provide a comprehensive emotional profile with values ranging from 0 to 1, enabling a more nuanced understanding of the emotions conveyed.",
4
+ "home_url": "https://rapidapi.com/fletcherrippon/api/text-to-emotions2/",
5
+ "name": "Text To Emotions",
6
+ "title": "Text To Emotions",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text To Emotions",
9
+ "score": null,
10
+ "host": "text-to-emotions2.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "predict_predict_emotion_post",
14
+ "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotion",
15
+ "description": " ",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": "",
22
+ "statuscode": 1,
23
+ "schema": ""
24
+ },
25
+ {
26
+ "name": "predictMany_predict_emotion_many_post",
27
+ "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotion-many",
28
+ "description": " ",
29
+ "method": "POST",
30
+ "required_parameters": [],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotion-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
34
+ "test_endpoint": "",
35
+ "statuscode": 1,
36
+ "schema": ""
37
+ },
38
+ {
39
+ "name": "Predict Emotions",
40
+ "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotions",
41
+ "description": "Predict emotions for input",
42
+ "method": "POST",
43
+ "required_parameters": [],
44
+ "optional_parameters": [],
45
+ "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
46
+ "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
47
+ "test_endpoint": "",
48
+ "statuscode": 200,
49
+ "schema": {}
50
+ },
51
+ {
52
+ "name": "predictMany_predict_emotions_many_post",
53
+ "url": "https://text-to-emotions2.p.rapidapi.com/predict-emotions-many",
54
+ "description": " ",
55
+ "method": "POST",
56
+ "required_parameters": [],
57
+ "optional_parameters": [],
58
+ "code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
59
+ "convert_code": "import requests\n\nurl = \"https://text-to-emotions2.p.rapidapi.com/predict-emotions-many\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-emotions2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
60
+ "test_endpoint": "",
61
+ "statuscode": 1,
62
+ "schema": ""
63
+ }
64
+ ]
65
+ }
toolbench/toolenv/tools/Text_Analysis/text_to_emotions/api.py ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def read_root_get(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ " "
12
+
13
+ """
14
+ url = f"https://text-to-emotions2.p.rapidapi.com/"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com"
20
+ }
21
+
22
+
23
+ response = requests.get(url, headers=headers, params=querystring)
24
+ try:
25
+ observation = response.json()
26
+ except:
27
+ observation = response.text
28
+ return observation
29
+
30
+ def predict_predict_emotions_text_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ " "
33
+
34
+ """
35
+ url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotions/:{text}"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com"
41
+ }
42
+
43
+
44
+ response = requests.get(url, headers=headers, params=querystring)
45
+ try:
46
+ observation = response.json()
47
+ except:
48
+ observation = response.text
49
+ return observation
50
+
51
+ def predictmany_predict_emotions_many_texts_get(texts: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
52
+ """
53
+ " "
54
+
55
+ """
56
+ url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotions-many/:{texts}"
57
+ querystring = {}
58
+
59
+ headers = {
60
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
61
+ "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com"
62
+ }
63
+
64
+
65
+ response = requests.get(url, headers=headers, params=querystring)
66
+ try:
67
+ observation = response.json()
68
+ except:
69
+ observation = response.text
70
+ return observation
71
+
72
+ def predict_predict_emotion_text_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
73
+ """
74
+ " "
75
+
76
+ """
77
+ url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotion/:{text}"
78
+ querystring = {}
79
+
80
+ headers = {
81
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
82
+ "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com"
83
+ }
84
+
85
+
86
+ response = requests.get(url, headers=headers, params=querystring)
87
+ try:
88
+ observation = response.json()
89
+ except:
90
+ observation = response.text
91
+ return observation
92
+
93
+ def predictmany_predict_emotion_many_texts_get(texts: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
94
+ """
95
+ " "
96
+
97
+ """
98
+ url = f"https://text-to-emotions2.p.rapidapi.com/predict-emotion-many/:{texts}"
99
+ querystring = {}
100
+
101
+ headers = {
102
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
103
+ "X-RapidAPI-Host": "text-to-emotions2.p.rapidapi.com"
104
+ }
105
+
106
+
107
+ response = requests.get(url, headers=headers, params=querystring)
108
+ try:
109
+ observation = response.json()
110
+ except:
111
+ observation = response.text
112
+ return observation
113
+
toolbench/toolenv/tools/Text_Analysis/text_to_speech.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_072ceab6-542d-4a3f-abef-bdd51cf39861",
3
+ "tool_description": "Ultra fast text-to-speech API for text and SSML conversion to audio files or binary data streams based on Amazon Polly. ",
4
+ "home_url": "https://rapidapi.com/akafui/api/text-to-speech37/",
5
+ "name": "Text-To-Speech",
6
+ "title": "Text-To-Speech",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Text-To-Speech",
9
+ "score": null,
10
+ "host": "text-to-speech37.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "text-to-speech",
14
+ "url": "https://text-to-speech37.p.rapidapi.com/prod/kynesys-tts",
15
+ "description": "Post text or SSML to this endpoint and get back either an mp3 file download link or an binary audio data.",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://text-to-speech37.p.rapidapi.com/prod/kynesys-tts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-speech37.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://text-to-speech37.p.rapidapi.com/prod/kynesys-tts\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-to-speech37.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Text_Analysis/text_translate.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "Text Translate",
3
+ "tool_description": "Real-time text translation with over 100+ supported languages.",
4
+ "title": "Text Translate",
5
+ "pricing": "FREEMIUM",
6
+ "score": null,
7
+ "home_url": "https://rapidapi.com/grimaceape/api/text-translate3/",
8
+ "host": "text-translate3.p.rapidapi.com",
9
+ "api_list": [
10
+ {
11
+ "name": "translate",
12
+ "url": "https://text-translate3.p.rapidapi.com/translate",
13
+ "description": "Translate text",
14
+ "method": "POST",
15
+ "required_parameters": [
16
+ {
17
+ "name": "to",
18
+ "type": "STRING",
19
+ "description": "The destination language",
20
+ "default": "zh-Hans"
21
+ },
22
+ {
23
+ "name": "from",
24
+ "type": "STRING",
25
+ "description": "The source language",
26
+ "default": "en"
27
+ }
28
+ ],
29
+ "optional_parameters": [],
30
+ "code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/translate\"\nquerystring = {\"to\": to, \"from\": is_from}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode": 111,
32
+ "body": "",
33
+ "headers": "",
34
+ "schema": ""
35
+ },
36
+ {
37
+ "name": "languages",
38
+ "url": "https://text-translate3.p.rapidapi.com/languages",
39
+ "description": "Get supported languages",
40
+ "method": "GET",
41
+ "required_parameters": [],
42
+ "optional_parameters": [],
43
+ "code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/languages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
44
+ "statuscode": 111,
45
+ "body": "",
46
+ "headers": "",
47
+ "schema": ""
48
+ },
49
+ {
50
+ "name": "translate",
51
+ "url": "https://text-translate3.p.rapidapi.com/translate",
52
+ "description": "Translate text",
53
+ "method": "POST",
54
+ "required_parameters": [
55
+ {
56
+ "name": "to",
57
+ "type": "STRING",
58
+ "description": "The destination language",
59
+ "default": "zh-Hans"
60
+ },
61
+ {
62
+ "name": "from",
63
+ "type": "STRING",
64
+ "description": "The source language",
65
+ "default": "en"
66
+ }
67
+ ],
68
+ "optional_parameters": [],
69
+ "code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/translate\"\nquerystring = {\"to\": \"zh-Hans\", \"from\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
70
+ "convert_code": "import requests\n\nurl = \"https://text-translate3.p.rapidapi.com/translate\"\nquerystring = {\"to\": \"zh-Hans\", \"from\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-translate3.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
71
+ "test_endpoint": ""
72
+ }
73
+ ]
74
+ }
toolbench/toolenv/tools/Text_Analysis/text_translate/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get supported languages"
12
+
13
+ """
14
+ url = f"https://text-translate3.p.rapidapi.com/languages"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "text-translate3.p.rapidapi.com"
20
+ }
21
+
22
+
23
+ response = requests.get(url, headers=headers, params=querystring)
24
+ try:
25
+ observation = response.json()
26
+ except:
27
+ observation = response.text
28
+ return observation
29
+
toolbench/toolenv/tools/Text_Analysis/text_url_pdf_summarization.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_3b526213-a90f-4e71-99be-e82e68aac916",
3
+ "tool_description": "Text URL PDF Summarization API With our api you will be able to extract the most important parts of copied texts, web texts and texts from pdf files.Our API Works with artificial intelligence and is very easy to use.Basically, you will have three apis in one. Text summaries, urls and pdfs.",
4
+ "home_url": "https://rapidapi.com/micaelbh/api/text-url-pdf-summarization/",
5
+ "name": "text-url-pdf-summarization",
6
+ "title": "text-url-pdf-summarization",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "text-url-pdf-summarization",
9
+ "score": {
10
+ "avgServiceLevel": 76,
11
+ "avgLatency": 3140,
12
+ "avgSuccessRate": 76,
13
+ "popularityScore": 8.8,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "text-url-pdf-summarization.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "url text",
20
+ "url": "https://text-url-pdf-summarization.p.rapidapi.com/urls",
21
+ "description": "In this method the text is extracted from up to 10 urls at once.\n\nThe parameters are:\nurls: address of the urls to be summarized\nPercent: percentage (0.2 to 0.8) representing 20% to 80%\nLang:\nenglish\nspanish\narabic\nazerbaijani\nBengali\ndanish\ndutch\nfinnish\nfrench\ngerman\ngreek\nhungarian\nindonesian\nitalian\nkazakh\nnepali\nnonwegian\nportuguese\nromanian\nrussian\nslovene\nswedish\ntajik\nturkish\n\nThe results come in json as:\n\ntitle: if the url has a title, our algorithm can recognize it and return this data.\n\nmarked_text: Text with html markings giving the most important parts according to percentage.\n\noriginal_text: text without abstract, but can be used for other purposes.\n\nsummary: Just the text summary.\n\ntext_url: url of the summarized text.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/urls\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/urls\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ },
29
+ {
30
+ "name": "pdf file",
31
+ "url": "https://text-url-pdf-summarization.p.rapidapi.com/pdfs",
32
+ "description": "In this method the pdf file must be in a url...\nFor example:\ndomain . com / file.pdf\n\nThe parameters are:\nurl: url fo the pdf file. \nPercent: percentage (0.2 to 0.8) representing 20% to 80%\nLang:\nenglish\nspanish\narabic\nazerbaijani\nBengali\ndanish\ndutch\nfinnish\nfrench\ngerman\ngreek\nhungarian\nindonesian\nitalian\nkazakh\nnepali\nnonwegian\nportuguese\nromanian\nrussian\nslovene\nswedish\ntajik\nturkish\n\nThe results come in json as:\n\nmarked_text: Text with html markings giving the most important parts according to percentage.\n\nsummary_text: here you only have the summary",
33
+ "method": "POST",
34
+ "required_parameters": [],
35
+ "optional_parameters": [],
36
+ "code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/pdfs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
37
+ "convert_code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/pdfs\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
38
+ "test_endpoint": ""
39
+ },
40
+ {
41
+ "name": "simple text",
42
+ "url": "https://text-url-pdf-summarization.p.rapidapi.com/simplesummary",
43
+ "description": "In this method the text to be summarized must already be extracted from somewhere.\n\nThe parameters are:\nOriginal_Text: Text to be summarized\nPercent: percentage (0.2 to 0.8) representing 20% to 80%\nLang:\nenglish\nspanish\narabic\nazerbaijani\nBengali\ndanish\ndutch\nfinnish\nfrench\ngerman\ngreek\nhungarian\nindonesian\nitalian\nkazakh\nnepali\nnonwegian\nportuguese\nromanian\nrussian\nslovene\nswedish\ntajik\nturkish\n\nThe results come in json as:\n\nmarked_text: Text with html markings giving the most important parts according to percentage.\n\noriginal_text: text without abstract, but can be used for other purposes.\n\nsummary_text: here you only have the summary",
44
+ "method": "POST",
45
+ "required_parameters": [],
46
+ "optional_parameters": [],
47
+ "code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/simplesummary\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
48
+ "convert_code": "import requests\n\nurl = \"https://text-url-pdf-summarization.p.rapidapi.com/simplesummary\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"text-url-pdf-summarization.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
49
+ "test_endpoint": ""
50
+ }
51
+ ]
52
+ }
toolbench/toolenv/tools/Text_Analysis/textanalysisapi.json ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "TextAnalysisAPI",
3
+ "tool_description": "Natural Language API provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis.",
4
+ "title": "TextAnalysisAPI",
5
+ "pricing": "FREEMIUM",
6
+ "score": null,
7
+ "home_url": "https://rapidapi.com/beslogic-ai-inc-beslogic-ai-inc-default/api/textanalysisapi/",
8
+ "host": "textanalysisapi.p.rapidapi.com",
9
+ "api_list": [
10
+ {
11
+ "name": "Language Detection",
12
+ "url": "https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/",
13
+ "description": "Detects one or many languages a document is written in and returns it in ISO 639-1 format, from among 62 different languages.",
14
+ "method": "POST",
15
+ "required_parameters": [
16
+ {
17
+ "name": "txt",
18
+ "type": "STRING",
19
+ "description": "",
20
+ "default": " Aucun autre d\u00e9tail sur les circonstances entourant cette mort suspecte n\u2019a \u00e9t\u00e9 d\u00e9voil\u00e9"
21
+ },
22
+ {
23
+ "name": "txt",
24
+ "type": "STRING",
25
+ "description": "",
26
+ "default": "hello"
27
+ }
28
+ ],
29
+ "optional_parameters": [],
30
+ "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/\"\nquerystring = {\"txt\": txt}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode": 200,
32
+ "body": [
33
+ {
34
+ "code": "fr ",
35
+ "confidence": 98,
36
+ "name": "French ",
37
+ "read bytes": 968
38
+ },
39
+ {
40
+ "code": "un ",
41
+ "confidence": 0,
42
+ "name": "un ",
43
+ "read bytes": 0
44
+ },
45
+ {
46
+ "code": "un ",
47
+ "confidence": 0,
48
+ "name": "un ",
49
+ "read bytes": 0
50
+ }
51
+ ],
52
+ "headers": {
53
+ "access-control-allow-origin": "*",
54
+ "content-type": "application/json",
55
+ "date": "Sun, 16 May 2021 15:49:08 GMT",
56
+ "server": "RapidAPI-1.2.8",
57
+ "x-rapidapi-region": "AWS - us-east-1",
58
+ "x-rapidapi-version": "1.2.8",
59
+ "content-length": "332",
60
+ "connection": "Close"
61
+ },
62
+ "schema": {}
63
+ },
64
+ {
65
+ "name": "Entity",
66
+ "url": "https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post",
67
+ "description": "Entity Extraction or Named Entity Recognition (NER) classifies tokens in text into up to 18 predefined categories (tags), such as person names, quantity expressions, percentage expressions, location names, organization names, time expressions, and currency. It also features a multilingual model that is available in 104 languages. NER Beslogic may be used as a knowledge extractor when there is a need to derive specific information from text.",
68
+ "method": "POST",
69
+ "required_parameters": [
70
+ {
71
+ "name": "txt",
72
+ "type": "STRING",
73
+ "description": "",
74
+ "default": " Hello from Montreal ."
75
+ }
76
+ ],
77
+ "optional_parameters": [],
78
+ "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post\"\nquerystring = {\"txt\": txt}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
79
+ "statuscode": 200,
80
+ "body": {
81
+ "NER_OUT_TAGS_ONLY": {
82
+ "B-CARDINAL": [],
83
+ "B-DATE": [],
84
+ "B-EVENT": [],
85
+ "B-FAC": [],
86
+ "B-GPE": [
87
+ "Montreal"
88
+ ],
89
+ "B-LANGUAGE": [],
90
+ "B-LAW": [],
91
+ "B-LOC": [],
92
+ "B-MONEY": [],
93
+ "B-NORP": [],
94
+ "B-ORDINAL": [],
95
+ "B-ORG": [],
96
+ "B-PERCENT": [],
97
+ "B-PERSON": [],
98
+ "B-PRODUCT": [],
99
+ "B-QUANTITY": [],
100
+ "B-TIME": [],
101
+ "B-WORK_OF_ART": []
102
+ },
103
+ "NER_OUT_TOKEN": [
104
+ [
105
+ "Hello",
106
+ "O"
107
+ ],
108
+ [
109
+ "from",
110
+ "O"
111
+ ],
112
+ [
113
+ "Montreal",
114
+ "B-GPE"
115
+ ],
116
+ [
117
+ ".",
118
+ "O"
119
+ ]
120
+ ]
121
+ },
122
+ "headers": {
123
+ "content-type": "application/json",
124
+ "date": "Tue, 18 May 2021 20:25:52 GMT",
125
+ "server": "RapidAPI-1.2.8",
126
+ "x-rapidapi-region": "AWS - us-east-1",
127
+ "x-rapidapi-version": "1.2.8",
128
+ "content-length": "609",
129
+ "connection": "Close"
130
+ },
131
+ "schema": {
132
+ "type": "object",
133
+ "properties": {
134
+ "NER_OUT_TAGS_ONLY": {
135
+ "type": "object",
136
+ "properties": {
137
+ "B-CARDINAL": {
138
+ "type": "array"
139
+ },
140
+ "B-DATE": {
141
+ "type": "array"
142
+ },
143
+ "B-EVENT": {
144
+ "type": "array"
145
+ },
146
+ "B-FAC": {
147
+ "type": "array"
148
+ },
149
+ "B-GPE": {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "B-LANGUAGE": {
156
+ "type": "array"
157
+ },
158
+ "B-LAW": {
159
+ "type": "array"
160
+ },
161
+ "B-LOC": {
162
+ "type": "array"
163
+ },
164
+ "B-MONEY": {
165
+ "type": "array"
166
+ },
167
+ "B-NORP": {
168
+ "type": "array"
169
+ },
170
+ "B-ORDINAL": {
171
+ "type": "array"
172
+ },
173
+ "B-ORG": {
174
+ "type": "array"
175
+ },
176
+ "B-PERCENT": {
177
+ "type": "array"
178
+ },
179
+ "B-PERSON": {
180
+ "type": "array"
181
+ },
182
+ "B-PRODUCT": {
183
+ "type": "array"
184
+ },
185
+ "B-QUANTITY": {
186
+ "type": "array"
187
+ },
188
+ "B-TIME": {
189
+ "type": "array"
190
+ },
191
+ "B-WORK_OF_ART": {
192
+ "type": "array"
193
+ }
194
+ }
195
+ },
196
+ "NER_OUT_TOKEN": {
197
+ "type": "array",
198
+ "items": {
199
+ "type": "array",
200
+ "items": {
201
+ "type": "string"
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ },
208
+ {
209
+ "name": "Similarity",
210
+ "url": "https://textanalysisapi.p.rapidapi.com/proxy/qaapi/get-similar/{word}",
211
+ "description": "Returns phrases related to the provided unigram, or bigram.",
212
+ "method": "GET",
213
+ "required_parameters": [
214
+ {
215
+ "name": "word",
216
+ "type": "string",
217
+ "description": "",
218
+ "default": "dog"
219
+ }
220
+ ],
221
+ "optional_parameters": [],
222
+ "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/get-similar/{word}\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
223
+ "statuscode": 111,
224
+ "body": "",
225
+ "headers": "",
226
+ "schema": ""
227
+ },
228
+ {
229
+ "name": "Language Detection",
230
+ "url": "https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/",
231
+ "description": "Detects one or many languages a document is written in and returns it in ISO 639-1 format, from among 62 different languages.",
232
+ "method": "POST",
233
+ "required_parameters": [
234
+ {
235
+ "name": "txt",
236
+ "type": "STRING",
237
+ "description": "",
238
+ "default": " Aucun autre d\u00e9tail sur les circonstances entourant cette mort suspecte n\u2019a \u00e9t\u00e9 d\u00e9voil\u00e9"
239
+ },
240
+ {
241
+ "name": "txt",
242
+ "type": "STRING",
243
+ "description": "",
244
+ "default": "hello"
245
+ }
246
+ ],
247
+ "optional_parameters": [],
248
+ "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/\"\nquerystring = {\"txt\": \"hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
249
+ "convert_code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/detect-language/\"\nquerystring = {\"txt\": \"hello\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
250
+ "test_endpoint": "",
251
+ "statuscode": 200,
252
+ "schema": {}
253
+ },
254
+ {
255
+ "name": "Entity",
256
+ "url": "https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post",
257
+ "description": "Entity Extraction or Named Entity Recognition (NER) classifies tokens in text into up to 18 predefined categories (tags), such as person names, quantity expressions, percentage expressions, location names, organization names, time expressions, and currency. It also features a multilingual model that is available in 104 languages. NER Beslogic may be used as a knowledge extractor when there is a need to derive specific information from text.",
258
+ "method": "POST",
259
+ "required_parameters": [
260
+ {
261
+ "name": "txt",
262
+ "type": "STRING",
263
+ "description": "",
264
+ "default": " Hello from Montreal ."
265
+ }
266
+ ],
267
+ "optional_parameters": [],
268
+ "code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post\"\nquerystring = {\"txt\": \" Hello from Montreal .\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
269
+ "convert_code": "import requests\n\nurl = \"https://textanalysisapi.p.rapidapi.com/proxy/ner/ner_tag_mix_out_post\"\nquerystring = {\"txt\": \" Hello from Montreal .\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textanalysisapi.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
270
+ "test_endpoint": "",
271
+ "statuscode": 200,
272
+ "schema": {
273
+ "type": "object",
274
+ "properties": {
275
+ "NER_OUT_TAGS_ONLY": {
276
+ "type": "object",
277
+ "properties": {
278
+ "B-CARDINAL": {
279
+ "type": "array"
280
+ },
281
+ "B-DATE": {
282
+ "type": "array"
283
+ },
284
+ "B-EVENT": {
285
+ "type": "array"
286
+ },
287
+ "B-FAC": {
288
+ "type": "array"
289
+ },
290
+ "B-GPE": {
291
+ "type": "array",
292
+ "items": {
293
+ "type": "string"
294
+ }
295
+ },
296
+ "B-LANGUAGE": {
297
+ "type": "array"
298
+ },
299
+ "B-LAW": {
300
+ "type": "array"
301
+ },
302
+ "B-LOC": {
303
+ "type": "array"
304
+ },
305
+ "B-MONEY": {
306
+ "type": "array"
307
+ },
308
+ "B-NORP": {
309
+ "type": "array"
310
+ },
311
+ "B-ORDINAL": {
312
+ "type": "array"
313
+ },
314
+ "B-ORG": {
315
+ "type": "array"
316
+ },
317
+ "B-PERCENT": {
318
+ "type": "array"
319
+ },
320
+ "B-PERSON": {
321
+ "type": "array"
322
+ },
323
+ "B-PRODUCT": {
324
+ "type": "array"
325
+ },
326
+ "B-QUANTITY": {
327
+ "type": "array"
328
+ },
329
+ "B-TIME": {
330
+ "type": "array"
331
+ },
332
+ "B-WORK_OF_ART": {
333
+ "type": "array"
334
+ }
335
+ }
336
+ },
337
+ "NER_OUT_TOKEN": {
338
+ "type": "array",
339
+ "items": {
340
+ "type": "array",
341
+ "items": {
342
+ "type": "string"
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
348
+ }
349
+ ]
350
+ }
toolbench/toolenv/tools/Text_Analysis/textanalysisapi/api.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def similarity(word: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Returns phrases related to the provided unigram, or bigram."
12
+
13
+ """
14
+ url = f"https://textanalysisapi.p.rapidapi.com/proxy/qaapi/get-similar/{word}"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "textanalysisapi.p.rapidapi.com"
20
+ }
21
+
22
+
23
+ response = requests.get(url, headers=headers, params=querystring)
24
+ try:
25
+ observation = response.json()
26
+ except:
27
+ observation = response.text
28
+ return observation
29
+
toolbench/toolenv/tools/Text_Analysis/textapi.json ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "TextAPI",
3
+ "tool_description": "A text extraction, manipulation, and analysis api. Putting the power of natural language processing (nlp) in every developers hands.",
4
+ "title": "TextAPI",
5
+ "pricing": "FREEMIUM",
6
+ "score": {
7
+ "avgServiceLevel": 100,
8
+ "avgLatency": 28394,
9
+ "avgSuccessRate": 97,
10
+ "popularityScore": 9.6,
11
+ "__typename": "Score"
12
+ },
13
+ "home_url": "https://rapidapi.com/textapi/api/textapi/",
14
+ "host": "textapis.p.rapidapi.com",
15
+ "api_list": [
16
+ {
17
+ "name": "Display Entities",
18
+ "url": "https://textapis.p.rapidapi.com/ner/display",
19
+ "description": "Renders the extracted entity types on submitted text or spans defined manually.",
20
+ "method": "GET",
21
+ "required_parameters": [
22
+ {
23
+ "name": "text",
24
+ "type": "STRING",
25
+ "description": "",
26
+ "default": "An October post from Dylan that may be saving you a Google search."
27
+ }
28
+ ],
29
+ "optional_parameters": [
30
+ {
31
+ "name": "model",
32
+ "type": "STRING",
33
+ "description": "",
34
+ "default": ""
35
+ },
36
+ {
37
+ "name": "spans",
38
+ "type": "STRING",
39
+ "description": "",
40
+ "default": ""
41
+ }
42
+ ],
43
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
44
+ "statuscode": 111,
45
+ "body": "",
46
+ "headers": "",
47
+ "schema": ""
48
+ },
49
+ {
50
+ "name": "Extract Entities",
51
+ "url": "https://textapis.p.rapidapi.com/ner",
52
+ "description": "Extracts named entities from text.",
53
+ "method": "GET",
54
+ "required_parameters": [
55
+ {
56
+ "name": "text",
57
+ "type": "STRING",
58
+ "description": "",
59
+ "default": "U.S. stocks rallied Thursday, with the Dow Jones Industrial Average up 2.9% in a tempestuous first half of the year."
60
+ }
61
+ ],
62
+ "optional_parameters": [
63
+ {
64
+ "name": "model",
65
+ "type": "STRING",
66
+ "description": "",
67
+ "default": ""
68
+ }
69
+ ],
70
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
71
+ "statuscode": 111,
72
+ "body": "",
73
+ "headers": "",
74
+ "schema": ""
75
+ },
76
+ {
77
+ "name": "Extract Entities (POST)",
78
+ "url": "https://textapis.p.rapidapi.com/ner",
79
+ "description": "Extracts named entities from text.",
80
+ "method": "POST",
81
+ "required_parameters": [],
82
+ "optional_parameters": [],
83
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n",
84
+ "statuscode": 111,
85
+ "body": "",
86
+ "headers": "",
87
+ "schema": ""
88
+ },
89
+ {
90
+ "name": "Sentiment",
91
+ "url": "https://textapis.p.rapidapi.com/sentiment",
92
+ "description": "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.",
93
+ "method": "GET",
94
+ "required_parameters": [
95
+ {
96
+ "name": "text",
97
+ "type": "STRING",
98
+ "description": "",
99
+ "default": "I really hate this!"
100
+ }
101
+ ],
102
+ "optional_parameters": [],
103
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
104
+ "statuscode": 111,
105
+ "body": "",
106
+ "headers": "",
107
+ "schema": ""
108
+ },
109
+ {
110
+ "name": "Sentiment (POST)",
111
+ "url": "https://textapis.p.rapidapi.com/sentiment",
112
+ "description": "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.",
113
+ "method": "POST",
114
+ "required_parameters": [
115
+ {
116
+ "name": "Content-Type",
117
+ "type": "STRING",
118
+ "description": "",
119
+ "default": "application/json"
120
+ }
121
+ ],
122
+ "optional_parameters": [],
123
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
124
+ "statuscode": 111,
125
+ "body": "",
126
+ "headers": "",
127
+ "schema": ""
128
+ },
129
+ {
130
+ "name": "Extract Text [From Webpage] (POST)",
131
+ "url": "https://textapis.p.rapidapi.com/text",
132
+ "description": "Extract text from the webpage linked with the url query parameter.",
133
+ "method": "POST",
134
+ "required_parameters": [
135
+ {
136
+ "name": "Content-Type",
137
+ "type": "STRING",
138
+ "description": "",
139
+ "default": "application/json"
140
+ }
141
+ ],
142
+ "optional_parameters": [],
143
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\nquerystring = {\"Content-Type\": content_type}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
144
+ "statuscode": 111,
145
+ "body": "",
146
+ "headers": "",
147
+ "schema": ""
148
+ },
149
+ {
150
+ "name": "Extract Text [From Webpage]",
151
+ "url": "https://textapis.p.rapidapi.com/text",
152
+ "description": "Extract text from the webpage linked with the url query parameter.",
153
+ "method": "GET",
154
+ "required_parameters": [
155
+ {
156
+ "name": "url",
157
+ "type": "STRING",
158
+ "description": "",
159
+ "default": "https://www.theguardian.com/world/2020/oct/24/thousands-join-poland-protests-against-strict-abortion-laws"
160
+ }
161
+ ],
162
+ "optional_parameters": [],
163
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\nquerystring = {\"url\": url}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
164
+ "statuscode": 111,
165
+ "body": "",
166
+ "headers": "",
167
+ "schema": ""
168
+ },
169
+ {
170
+ "name": "Display Entities (POST)",
171
+ "url": "https://textapis.p.rapidapi.com/ner/display",
172
+ "description": "Renders the extracted entity types on submitted text or spans defined manually.",
173
+ "method": "POST",
174
+ "required_parameters": [],
175
+ "optional_parameters": [
176
+ {
177
+ "name": "text",
178
+ "type": "STRING",
179
+ "description": "",
180
+ "default": ""
181
+ },
182
+ {
183
+ "name": "spans",
184
+ "type": "STRING",
185
+ "description": "",
186
+ "default": ""
187
+ },
188
+ {
189
+ "name": "model",
190
+ "type": "STRING",
191
+ "description": "",
192
+ "default": ""
193
+ }
194
+ ],
195
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers)\n\nprint(response.json())\n",
196
+ "statuscode": 111,
197
+ "body": "",
198
+ "headers": "",
199
+ "schema": ""
200
+ },
201
+ {
202
+ "name": "Extract Entities (POST)",
203
+ "url": "https://textapis.p.rapidapi.com/ner",
204
+ "description": "Extracts named entities from text.",
205
+ "method": "POST",
206
+ "required_parameters": [],
207
+ "optional_parameters": [],
208
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
209
+ "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
210
+ "test_endpoint": ""
211
+ },
212
+ {
213
+ "name": "Sentiment (POST)",
214
+ "url": "https://textapis.p.rapidapi.com/sentiment",
215
+ "description": "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media.",
216
+ "method": "POST",
217
+ "required_parameters": [],
218
+ "optional_parameters": [],
219
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
220
+ "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/sentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
221
+ "test_endpoint": ""
222
+ },
223
+ {
224
+ "name": "Extract Text [From Webpage] (POST)",
225
+ "url": "https://textapis.p.rapidapi.com/text",
226
+ "description": "Extract text from the webpage linked with the url query parameter.",
227
+ "method": "POST",
228
+ "required_parameters": [],
229
+ "optional_parameters": [],
230
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
231
+ "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/text\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
232
+ "test_endpoint": ""
233
+ },
234
+ {
235
+ "name": "Display Entities (POST)",
236
+ "url": "https://textapis.p.rapidapi.com/ner/display",
237
+ "description": "Renders the extracted entity types on submitted text or spans defined manually.",
238
+ "method": "POST",
239
+ "required_parameters": [],
240
+ "optional_parameters": [
241
+ {
242
+ "name": "text",
243
+ "type": "STRING",
244
+ "description": "",
245
+ "default": ""
246
+ },
247
+ {
248
+ "name": "spans",
249
+ "type": "STRING",
250
+ "description": "",
251
+ "default": ""
252
+ },
253
+ {
254
+ "name": "model",
255
+ "type": "STRING",
256
+ "description": "",
257
+ "default": ""
258
+ }
259
+ ],
260
+ "code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\nquerystring = {\"text\": \"\", \"spans\": \"\", \"model\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
261
+ "convert_code": "import requests\n\nurl = \"https://textapis.p.rapidapi.com/ner/display\"\nquerystring = {\"text\": \"\", \"spans\": \"\", \"model\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textapis.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
262
+ "test_endpoint": ""
263
+ }
264
+ ]
265
+ }
toolbench/toolenv/tools/Text_Analysis/textapi/api.py ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def display_entities(text: str, model: str=None, spans: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Renders the extracted entity types on submitted text or spans defined manually."
12
+
13
+ """
14
+ url = f"https://textapis.p.rapidapi.com/ner/display"
15
+ querystring = {'text': text, }
16
+ if model:
17
+ querystring['model'] = model
18
+ if spans:
19
+ querystring['spans'] = spans
20
+
21
+ headers = {
22
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
23
+ "X-RapidAPI-Host": "textapis.p.rapidapi.com"
24
+ }
25
+
26
+
27
+ response = requests.get(url, headers=headers, params=querystring)
28
+ try:
29
+ observation = response.json()
30
+ except:
31
+ observation = response.text
32
+ return observation
33
+
34
+ def extract_entities(text: str, model: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
35
+ """
36
+ "Extracts named entities from text."
37
+
38
+ """
39
+ url = f"https://textapis.p.rapidapi.com/ner"
40
+ querystring = {'text': text, }
41
+ if model:
42
+ querystring['model'] = model
43
+
44
+ headers = {
45
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
46
+ "X-RapidAPI-Host": "textapis.p.rapidapi.com"
47
+ }
48
+
49
+
50
+ response = requests.get(url, headers=headers, params=querystring)
51
+ try:
52
+ observation = response.json()
53
+ except:
54
+ observation = response.text
55
+ return observation
56
+
57
+ def sentiment(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
58
+ """
59
+ "Get the sentiment of submitted text using VADER (Valence Aware Dictionary and sEntiment Reasoner) is a lexicon and rule-based sentiment analysis tool that is specifically attuned to sentiments expressed in social media."
60
+
61
+ """
62
+ url = f"https://textapis.p.rapidapi.com/sentiment"
63
+ querystring = {'text': text, }
64
+
65
+ headers = {
66
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
67
+ "X-RapidAPI-Host": "textapis.p.rapidapi.com"
68
+ }
69
+
70
+
71
+ response = requests.get(url, headers=headers, params=querystring)
72
+ try:
73
+ observation = response.json()
74
+ except:
75
+ observation = response.text
76
+ return observation
77
+
78
+ def extract_text_from_webpage(url: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
79
+ """
80
+ "Extract text from the webpage linked with the url query parameter."
81
+
82
+ """
83
+ url = f"https://textapis.p.rapidapi.com/text"
84
+ querystring = {'url': url, }
85
+
86
+ headers = {
87
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
88
+ "X-RapidAPI-Host": "textapis.p.rapidapi.com"
89
+ }
90
+
91
+
92
+ response = requests.get(url, headers=headers, params=querystring)
93
+ try:
94
+ observation = response.json()
95
+ except:
96
+ observation = response.text
97
+ return observation
98
+
toolbench/toolenv/tools/Text_Analysis/textdiff_text_documents_comparison_api.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_b4a0b056-01ab-4fbb-b958-cb31e145e5c5",
3
+ "tool_description": "TextDiff API allows you to compare text documents at the word and line levels, highlighting added, removed, and identical segments. Simplify document analysis, version control, and content management with this powerful text comparison tool.",
4
+ "home_url": "https://rapidapi.com/Morax/api/textdiff-text-documents-comparison-api/",
5
+ "name": "TextDiff: Text Documents Comparison API",
6
+ "title": "TextDiff: Text Documents Comparison API",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TextDiff: Text Documents Comparison API",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 186,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 8.7,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "textdiff-text-documents-comparison-api.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Compare Words",
20
+ "url": "https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/words",
21
+ "description": "# TextDiff: Text Documents Comparison API\n\nThe TextDiff API is a powerful tool that allows you to compare text documents at both the word and line levels, providing detailed insights into the differences between them. Whether you're analyzing documents, managing content, or implementing version control systems, the TextDiff API simplifies the process by streamlining text comparison operations.\n\n## Features\n\n- **Word Comparison**: Compare the words in two text documents and highlight the differences between them.\n- **Line Comparison**: Detect differences between the lines in two text documents.\n- **Granular Results**: Get detailed information about added, removed, and identical segments within the texts.\n- **Easy Integration**: Utilize the API in your own applications or systems with ease.\n\n## Endpoints\n\nThe TextDiff API exposes the following endpoints:\n\n- `POST /compare/words`: Compare the words in two text documents.\n- `POST /compare/lines`: Compare the lines in two text documents.\n\n## Request Format\n\nBoth endpoints expect a JSON payload with the following structure:\n\n```json\n{\n \"text1\": \"Text content of the first document\",\n \"text2\": \"Text content of the second document\"\n}\n```\n\n## Response Format\n```json\n[\n {\n \"value\": \"Segment value\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n ...\n]\n```\n\n- value: The value of the text segment.\n- added: Indicates whether the segment was added in the second document (true) or not (false).\n- removed: Indicates whether the segment was removed from the first document (true) or not (false).\n- identical: Indicates whether the segment is identical between the documents (true) or not (false).\n\n## Example Response by Words\n```json\n[\n {\n \"value\": \"This\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"is\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"a\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"sample\",\n \"added\": true,\n \"removed\": false,\n \"identical\": false\n },\n {\n \"value\": \"text\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"document\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n }\n]\n```\n\n\n## Error Handling\nIf the request payload is missing the text1 or text2 field, the API will respond with a 400 Bad Request status code and an error message.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/words\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/words\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {
30
+ "type": "object",
31
+ "properties": {
32
+ "get": {
33
+ "type": "string"
34
+ },
35
+ "parameters": {
36
+ "type": "array"
37
+ },
38
+ "errors": {
39
+ "type": "array"
40
+ },
41
+ "results": {
42
+ "type": "integer"
43
+ },
44
+ "response": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object"
48
+ }
49
+ }
50
+ }
51
+ }
52
+ },
53
+ {
54
+ "name": "Compare Lines",
55
+ "url": "https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/lines",
56
+ "description": "# TextDiff: Text Documents Comparison API\n\nThe TextDiff API is a powerful tool that allows you to compare text documents at both the word and line levels, providing detailed insights into the differences between them. Whether you're analyzing documents, managing content, or implementing version control systems, the TextDiff API simplifies the process by streamlining text comparison operations.\n\n## Features\n\n- **Word Comparison**: Compare the words in two text documents and highlight the differences between them.\n- **Line Comparison**: Detect differences between the lines in two text documents.\n- **Granular Results**: Get detailed information about added, removed, and identical segments within the texts.\n- **Easy Integration**: Utilize the API in your own applications or systems with ease.\n\n## Endpoints\n\nThe TextDiff API exposes the following endpoints:\n\n- `POST /compare/words`: Compare the words in two text documents.\n- `POST /compare/lines`: Compare the lines in two text documents.\n\n## Request Format\n\nBoth endpoints expect a JSON payload with the following structure:\n\n```json\n{\n \"text1\": \"Text content of the first document\",\n \"text2\": \"Text content of the second document\"\n}\n```\n\n## Response Format\n```json\n[\n {\n \"value\": \"Segment value\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n ...\n]\n```\n\n- value: The value of the text segment.\n- added: Indicates whether the segment was added in the second document (true) or not (false).\n- removed: Indicates whether the segment was removed from the first document (true) or not (false).\n- identical: Indicates whether the segment is identical between the documents (true) or not (false).\n\n## Example Response by Words\n```json\n[\n {\n \"value\": \"This\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"is\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"a\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"sample\",\n \"added\": true,\n \"removed\": false,\n \"identical\": false\n },\n {\n \"value\": \"text\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n },\n {\n \"value\": \"document\",\n \"added\": false,\n \"removed\": false,\n \"identical\": true\n }\n]\n```\n\n\n## Error Handling\nIf the request payload is missing the text1 or text2 field, the API will respond with a 400 Bad Request status code and an error message.",
57
+ "method": "POST",
58
+ "required_parameters": [],
59
+ "optional_parameters": [],
60
+ "code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/lines\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
61
+ "convert_code": "import requests\n\nurl = \"https://textdiff-text-documents-comparison-api.p.rapidapi.com/api/v1/compare/lines\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textdiff-text-documents-comparison-api.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
62
+ "test_endpoint": "",
63
+ "statuscode": 200,
64
+ "schema": {
65
+ "type": "object",
66
+ "properties": {
67
+ "get": {
68
+ "type": "string"
69
+ },
70
+ "parameters": {
71
+ "type": "array"
72
+ },
73
+ "errors": {
74
+ "type": "array"
75
+ },
76
+ "results": {
77
+ "type": "integer"
78
+ },
79
+ "response": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object"
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ ]
89
+ }
toolbench/toolenv/tools/Text_Analysis/textgears.json ADDED
@@ -0,0 +1,396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "576da662e4b0bd97e2279a31",
3
+ "tool_description": "AI-empowered spelling and grammar checker with automatic correction. Text summarization and keyword extraction. Language detection. Readability calculator.",
4
+ "home_url": "https://rapidapi.com/Textgears/api/textgears/",
5
+ "name": "TextGears",
6
+ "title": "TextGears",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TextGears",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 857,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 9.8,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "textgears-textgears-v1.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Grammar check",
20
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/grammar",
21
+ "description": "The method allows you to check the text for grammatical, spelling, punctuation and stylistic errors. Supported languages: English, French, German, Portuguese, Italian, Spanish, Japanese, Chinese, Greek.\nProvides error description and fix suggestions.",
22
+ "method": "POST",
23
+ "required_parameters": [
24
+ {
25
+ "name": "text",
26
+ "type": "STRING",
27
+ "description": "",
28
+ "default": "My mother are a doctor, but my father is a angeneer. I has a gun."
29
+ }
30
+ ],
31
+ "optional_parameters": [
32
+ {
33
+ "name": "dictionary_id",
34
+ "type": "STRING",
35
+ "description": "",
36
+ "default": ""
37
+ },
38
+ {
39
+ "name": "language",
40
+ "type": "ENUM",
41
+ "description": "Language code. It\u2019s an optional parameter, and the default value is *en-US*.\nSupported languages and dialects: en-US, en-GB, en-ZA, en-AU, en-NZ, fr-FR, de-DE, de-AT, de-CH, pt-PT, pt-BR, it-IT, es-ES, ja-JP, zh-CN, el-GR",
42
+ "default": ""
43
+ }
44
+ ],
45
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/grammar\"\nquerystring = {\"dictionary_id\": \"\", \"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
46
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/grammar\"\nquerystring = {\"dictionary_id\": \"\", \"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
47
+ "test_endpoint": "",
48
+ "statuscode": 200,
49
+ "schema": {
50
+ "properties": {
51
+ "response": {
52
+ "type": "object"
53
+ },
54
+ "status ": {
55
+ "type": "boolean"
56
+ }
57
+ },
58
+ "type": "object"
59
+ }
60
+ },
61
+ {
62
+ "name": "Delete exception",
63
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/deleteexception",
64
+ "description": "Delete exception by id",
65
+ "method": "POST",
66
+ "required_parameters": [
67
+ {
68
+ "name": "id",
69
+ "type": "STRING",
70
+ "description": "",
71
+ "default": ""
72
+ }
73
+ ],
74
+ "optional_parameters": [
75
+ {
76
+ "name": "dictionary_id",
77
+ "type": "STRING",
78
+ "description": "",
79
+ "default": ""
80
+ }
81
+ ],
82
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deleteexception\"\nquerystring = {\"id\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
83
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deleteexception\"\nquerystring = {\"id\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
84
+ "test_endpoint": ""
85
+ },
86
+ {
87
+ "name": "Delete dictionary",
88
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/deletedictionary",
89
+ "description": "Delete custom dictionary. id can be a number, a string or even null. Default dictionary has id === null",
90
+ "method": "POST",
91
+ "required_parameters": [],
92
+ "optional_parameters": [
93
+ {
94
+ "name": "id",
95
+ "type": "STRING",
96
+ "description": "",
97
+ "default": ""
98
+ }
99
+ ],
100
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deletedictionary\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
101
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/deletedictionary\"\nquerystring = {\"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
102
+ "test_endpoint": "",
103
+ "statuscode": 200,
104
+ "schema": {}
105
+ },
106
+ {
107
+ "name": "Create exception",
108
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/addexception",
109
+ "description": "Create. custom exception",
110
+ "method": "POST",
111
+ "required_parameters": [
112
+ {
113
+ "name": "lang",
114
+ "type": "STRING",
115
+ "description": "",
116
+ "default": "en"
117
+ },
118
+ {
119
+ "name": "text",
120
+ "type": "STRING",
121
+ "description": "",
122
+ "default": "aaa"
123
+ },
124
+ {
125
+ "name": "type",
126
+ "type": "NUMBER",
127
+ "description": "",
128
+ "default": "1"
129
+ }
130
+ ],
131
+ "optional_parameters": [
132
+ {
133
+ "name": "suggestions",
134
+ "type": "STRING",
135
+ "description": "",
136
+ "default": "bbb,ccc"
137
+ },
138
+ {
139
+ "name": "description",
140
+ "type": "STRING",
141
+ "description": "",
142
+ "default": ""
143
+ },
144
+ {
145
+ "name": "dictionary_id",
146
+ "type": "STRING",
147
+ "description": "",
148
+ "default": ""
149
+ }
150
+ ],
151
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/addexception\"\nquerystring = {\"lang\": \"en\", \"text\": \"aaa\", \"suggestions\": \"bbb,ccc\", \"type\": \"1\", \"description\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
152
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/addexception\"\nquerystring = {\"lang\": \"en\", \"text\": \"aaa\", \"suggestions\": \"bbb,ccc\", \"type\": \"1\", \"description\": \"\", \"dictionary_id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
153
+ "test_endpoint": "",
154
+ "statuscode": 200,
155
+ "schema": {}
156
+ },
157
+ {
158
+ "name": "Edit dictionary",
159
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/updatedictionary",
160
+ "description": "Edit dictionary params. id can be a number, a string or even null. Default dictionary has id === null",
161
+ "method": "POST",
162
+ "required_parameters": [],
163
+ "optional_parameters": [
164
+ {
165
+ "name": "id",
166
+ "type": "STRING",
167
+ "description": "",
168
+ "default": ""
169
+ },
170
+ {
171
+ "name": "title",
172
+ "type": "STRING",
173
+ "description": "",
174
+ "default": "New title"
175
+ }
176
+ ],
177
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/updatedictionary\"\nquerystring = {\"id\": \"\", \"title\": \"New title\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
178
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/updatedictionary\"\nquerystring = {\"id\": \"\", \"title\": \"New title\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
179
+ "test_endpoint": "",
180
+ "statuscode": 200,
181
+ "schema": {}
182
+ },
183
+ {
184
+ "name": "Create dictionary",
185
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/custom/createdictionary",
186
+ "description": "If you need a flexible setting for checking text for errors, use the custom exceptions setting. This will be especially useful for companies working with texts that are full of words from a special vocabulary. Mark words or phrases as \"correct\" so that the system stops considering them mistakes. You can also use it to allow the system to find mistakes according to the list of specific words.\n\nid parameter can be a number, a string or even null. Default dictionary has id === null. It will be filled with exceptions created without dictionary_id parameter.",
187
+ "method": "POST",
188
+ "required_parameters": [],
189
+ "optional_parameters": [
190
+ {
191
+ "name": "title",
192
+ "type": "STRING",
193
+ "description": "",
194
+ "default": "Test"
195
+ },
196
+ {
197
+ "name": "id",
198
+ "type": "STRING",
199
+ "description": "",
200
+ "default": ""
201
+ }
202
+ ],
203
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/createdictionary\"\nquerystring = {\"title\": \"Test\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
204
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/custom/createdictionary\"\nquerystring = {\"title\": \"Test\", \"id\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
205
+ "test_endpoint": "",
206
+ "statuscode": 200,
207
+ "schema": {}
208
+ },
209
+ {
210
+ "name": "Language detection",
211
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/detect",
212
+ "description": "Determination of the language of the text and the assumption of its dialect. The method returns an array of probable options for each language. If it is not possible to unambiguously identify the language, the language field returns null.",
213
+ "method": "POST",
214
+ "required_parameters": [
215
+ {
216
+ "name": "text",
217
+ "type": "STRING",
218
+ "description": "",
219
+ "default": "Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine."
220
+ }
221
+ ],
222
+ "optional_parameters": [],
223
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/detect\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
224
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/detect\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
225
+ "test_endpoint": "",
226
+ "statuscode": 200,
227
+ "schema": {
228
+ "properties": {
229
+ "response": {
230
+ "type": "object"
231
+ },
232
+ "status ": {
233
+ "type": "boolean"
234
+ }
235
+ },
236
+ "type": "object"
237
+ }
238
+ },
239
+ {
240
+ "name": "Readability",
241
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/readability",
242
+ "description": "Calculates readability and other text metrics.\n\n**Important!**\nWhen determining text metrics, accuracy is directly related to the size of the text. Determining the readability or other parameters of the text for a two-word sentence is meaningless. It is recommended to check texts that has at least 30 words. The more the better.",
243
+ "method": "POST",
244
+ "required_parameters": [
245
+ {
246
+ "name": "text",
247
+ "type": "STRING",
248
+ "description": "",
249
+ "default": "Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine."
250
+ }
251
+ ],
252
+ "optional_parameters": [
253
+ {
254
+ "name": "language",
255
+ "type": "ENUM",
256
+ "description": "",
257
+ "default": ""
258
+ }
259
+ ],
260
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/readability\"\nquerystring = {\"language\": \"\", \"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
261
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/readability\"\nquerystring = {\"language\": \"\", \"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
262
+ "test_endpoint": "",
263
+ "statuscode": 200,
264
+ "schema": {
265
+ "properties": {
266
+ "response": {
267
+ "type": "object"
268
+ },
269
+ "status ": {
270
+ "type": "boolean"
271
+ }
272
+ },
273
+ "type": "object"
274
+ }
275
+ },
276
+ {
277
+ "name": "Spell checker",
278
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/spelling",
279
+ "description": "Checks the text for typos in English, French, German, Portuguese, Italian, Spanish, Japanese, Chinese, Greek",
280
+ "method": "POST",
281
+ "required_parameters": [
282
+ {
283
+ "name": "text",
284
+ "type": "STRING",
285
+ "description": "",
286
+ "default": "My mother are a doctor, but my father is a angeneer. I has a gun."
287
+ }
288
+ ],
289
+ "optional_parameters": [
290
+ {
291
+ "name": "language",
292
+ "type": "ENUM",
293
+ "description": "Language code. It\u2019s an optional parameter, and the default value is *en-US*.\nSupported languages and dialects: en-US, en-GB, en-ZA, en-AU, en-NZ, fr-FR, de-DE, de-AT, de-CH, pt-PT, pt-BR, it-IT, es-ES, ja-JP, zh-CN, el-GR",
294
+ "default": ""
295
+ }
296
+ ],
297
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/spelling\"\nquerystring = {\"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
298
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/spelling\"\nquerystring = {\"text\": \"My mother are a doctor, but my father is a angeneer. I has a gun.\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
299
+ "test_endpoint": "",
300
+ "statuscode": 200,
301
+ "schema": {
302
+ "properties": {
303
+ "response": {
304
+ "properties": {
305
+ "errors": {
306
+ "items": {
307
+ "properties": {
308
+ "bad": {
309
+ "type": "string"
310
+ },
311
+ "better": {
312
+ "items": {
313
+ "type": "string"
314
+ },
315
+ "type": "array"
316
+ },
317
+ "description": {
318
+ "properties": {
319
+ "en": {
320
+ "type": "string"
321
+ }
322
+ },
323
+ "type": "object"
324
+ },
325
+ "id": {
326
+ "type": "string"
327
+ },
328
+ "length": {
329
+ "type": "integer"
330
+ },
331
+ "offset": {
332
+ "type": "integer"
333
+ },
334
+ "type": {
335
+ "type": "string"
336
+ }
337
+ },
338
+ "type": "object"
339
+ },
340
+ "type": "array"
341
+ }
342
+ },
343
+ "type": "object"
344
+ },
345
+ "status": {
346
+ "type": "boolean"
347
+ }
348
+ },
349
+ "type": "object"
350
+ }
351
+ },
352
+ {
353
+ "name": "Summarization and keywords extraction",
354
+ "url": "https://textgears-textgears-v1.p.rapidapi.com/summarize",
355
+ "description": "Automatic text summarization and keywords extraction. API returns a summary and a highlight. What's the difference? \n\n- Summary contains the most important sentences of text. Summary describes a text content the best way. \n- Highlight is the most important paragraph starting with the most important sentence.\n\nKeywords array is ordered by importance.\nBy default summary size depends on source text length. To limit the number of sentences set *max_sentences* parameter.",
356
+ "method": "POST",
357
+ "required_parameters": [
358
+ {
359
+ "name": "text",
360
+ "type": "STRING",
361
+ "description": "",
362
+ "default": "Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine."
363
+ }
364
+ ],
365
+ "optional_parameters": [
366
+ {
367
+ "name": "max_sentences",
368
+ "type": "NUMBER",
369
+ "description": "",
370
+ "default": "3"
371
+ },
372
+ {
373
+ "name": "language",
374
+ "type": "ENUM",
375
+ "description": "",
376
+ "default": ""
377
+ }
378
+ ],
379
+ "code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/summarize\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\", \"max_sentences\": \"3\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
380
+ "convert_code": "import requests\n\nurl = \"https://textgears-textgears-v1.p.rapidapi.com/summarize\"\nquerystring = {\"text\": \"Readability (legibility) is a feature of the text that represents ease of its perception by the reader, as well as the evaluation of its simplicity. The two main factors of readability are the printing and linguistic features of the text. The Flesch Kinkaid Score is the most popular way to measure the readability of English text. It works on the principle of \u201cthe fewer words in the text, and the fewer syllables in them, the easier it is to perceive\u201d and is most often used for checking essays in schools and universities. The higher the index value on a 100-point scale, the better the readability of the text. Smart human-trained search algorithms evaluate all site content for completeness of topic disclosure, and in a form that is understandable to the reader. For this purpose, readability indexes are used. In other words, pages containing simple and clear text get higher positions in the search results. Improving the text in terms of its printing and linguistic qualities will increase the user's viewing time. It turns out that the readability significantly affects the ranking of sites in the search engine.\", \"max_sentences\": \"3\", \"language\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textgears-textgears-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
381
+ "test_endpoint": "",
382
+ "statuscode": 200,
383
+ "schema": {
384
+ "properties": {
385
+ "response": {
386
+ "type": "object"
387
+ },
388
+ "status ": {
389
+ "type": "boolean"
390
+ }
391
+ },
392
+ "type": "object"
393
+ }
394
+ }
395
+ ]
396
+ }
toolbench/toolenv/tools/Text_Analysis/textmind.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_4c192fac-98d6-41e9-bde2-56ac4f5cc0f9",
3
+ "tool_description": "TextMind offers a suite of NLP currently includes sentiment analysis.",
4
+ "home_url": "https://rapidapi.com/numen-numen-default/api/textmind/",
5
+ "name": "TextMind",
6
+ "title": "TextMind",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TextMind",
9
+ "score": null,
10
+ "host": "textmind.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "SentimentalAnalysis",
14
+ "url": "https://textmind.p.rapidapi.com/api/SentimentalAnalysis",
15
+ "description": "Overview\n-------\nSentiment Analysis API endpoint is a service that allows developers to programmatically analyze the sentiment of a given text. It uses natural language processing and machine learning algorithms to determine the emotional tone of the text, such as positive, negative, or neutral. The API typically takes a string of text as input and returns a sentiment label. Additionally you can get sentiments of each of the statement in a paragraph. It can be used in a variety of applications such as social media monitoring, customer feedback analysis, and more.\n\nImportant\n-------\n\n- It is important to be aware that billing for this service is calculated based on the number of characters per 1000. For example, if the requested message contains 999 characters, it will be considered as one \"KCharacter\" unit. Conversely, a message containing 4100 characters would be calculated as five \"KCharacter\" units.\n- Maximum text request is of 5120 characters.\n\nList of supported languages with language code\n----------\nAfrikaans\taf\nAlbanian\tsq\nAmharic\tam\nArabic\tar\nArmenian\thy\nAssamese\tas\nAzerbaijani\taz\nBasque\teu\nBelarusian \tbe\nBengali\tbn\nBosnian\tbs\nBreton \tbr\nBulgarian\tbg\nBurmese\tmy\nCatalan\tca\nChinese (Simplified)\tzh-hans\nChinese (Traditional)\tzh-hant\nCroatian\thr\nCzech\tcs\nDanish\tda\nDutch\tnl\nEnglish\ten\nEsperanto \teo\nEstonian\tet\nFilipino\tfil\nFinnish\tfi\nFrench\tfr\nGalician\tgl\nGeorgian\tka\nGerman\tde\nGreek\tel\nGujarati\tgu\nHausa \tha\nHebrew\the\nHindi\thi\nHungarian\thu\nIndonesian\tid\nIrish\tga\nItalian\tit\nJapanese\tja\nJavanese \tjv\nKannada\tkn\nKazakh\tkk\nKhmer\tkm\nKorean\tko\nKurdish (Kurmanji)\tku\nKyrgyz\tky\nLao\tlo\nLatin \tla\nLatvian\tlv\nLithuanian\tlt\nMacedonian\tmk\nMalagasy\tmg\nMalay\tms\nMalayalam\tml\nMarathi\tmr\nMongolian\tmn\nNepali\tne\nNorwegian\tno\nOdia\tor\nOromo \tom\nPashto\tps\nPersian\tfa\nPolish\tpl\nPortuguese (Portugal)\tpt-PT\nPortuguese (Brazil)\tpt-BR\nPunjabi\tpa\nRomanian\tro\nRussian\tru\nSanskrit \tsa\nScottish Gaelic \tgd\nSerbian\tsr\nSindhi \tsd\nSinhala \tsi\nSlovak\tsk\nSlovenian\tsl\nSomali\tso\nSpanish\tes\nSundanese \tsu\nSwahili\tsw\nSwedish\tsv\nTamil\tta\nTelugu\tte\nThai\tth\nTurkish\ttr\nUkrainian\tuk\nUrdu\tur\nUyghur\tug\nUzbek\tuz\nVietnamese\tvi\nWelsh\tcy\nWestern Frisian \tfy\nXhosa \txh\nYiddish \tyi",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://textmind.p.rapidapi.com/api/SentimentalAnalysis\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textmind.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://textmind.p.rapidapi.com/api/SentimentalAnalysis\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textmind.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": "",
22
+ "statuscode": 200,
23
+ "schema": {}
24
+ }
25
+ ]
26
+ }
toolbench/toolenv/tools/Text_Analysis/textnerd_io.json ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_76867d02-a249-4a73-9bce-c9c01f67403a",
3
+ "tool_description": "Convert case and count characters, words, sentences, paragraphs and spaces.",
4
+ "home_url": "https://rapidapi.com/melbatista76/api/textnerd-io/",
5
+ "name": "TextNerd.io",
6
+ "title": "TextNerd.io",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TextNerd.io",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 123,
12
+ "avgSuccessRate": 99,
13
+ "popularityScore": 9,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "textnerd-io.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Sentencecase Text",
20
+ "url": "https://textnerd-io.p.rapidapi.com/api/sentencecase",
21
+ "description": "Convert first letter of a sentence to uppercase.\nExample: 'the road warrior. a man of mistery.' => 'The road warrior. A man of mistery.'\n\nFor more information on Sentence Case please review the Tutorial tab.\n\nSee the About page for more information and limits.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/sentencecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/sentencecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {
30
+ "type": "object",
31
+ "properties": {
32
+ "inputText": {
33
+ "type": "string"
34
+ },
35
+ "sentencecaseText": {
36
+ "type": "string"
37
+ },
38
+ "sentencecaseTextLenght": {
39
+ "type": "integer"
40
+ },
41
+ "sentencecaseWordCount": {
42
+ "type": "integer"
43
+ },
44
+ "sentencecaseSentenceCount": {
45
+ "type": "integer"
46
+ },
47
+ "sentencecaseParagraphCoun": {
48
+ "type": "integer"
49
+ },
50
+ "sentencecaseSpaceCount": {
51
+ "type": "integer"
52
+ }
53
+ }
54
+ }
55
+ },
56
+ {
57
+ "name": "Alternatecase Text",
58
+ "url": "https://textnerd-io.p.rapidapi.com/api/alternatecase",
59
+ "description": "Alternalte case in every letter, starting with uppercase letter.\nExample: 'the road warrior' => 'ThE RoAd wArRiOr'\n\nSee the About page for more information and limits.",
60
+ "method": "POST",
61
+ "required_parameters": [],
62
+ "optional_parameters": [],
63
+ "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/alternatecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
64
+ "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/alternatecase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
65
+ "test_endpoint": "",
66
+ "statuscode": 200,
67
+ "schema": {
68
+ "type": "object",
69
+ "properties": {
70
+ "inputText": {
71
+ "type": "string"
72
+ },
73
+ "alternatecaseText": {
74
+ "type": "string"
75
+ },
76
+ "alternatecaseTextLenght": {
77
+ "type": "integer"
78
+ },
79
+ "alternatecaseWordCount": {
80
+ "type": "integer"
81
+ },
82
+ "alternatecaseSentenceCount": {
83
+ "type": "integer"
84
+ },
85
+ "alternatecaseParagraphCount": {
86
+ "type": "integer"
87
+ },
88
+ "alternatecaseSpaceCount": {
89
+ "type": "integer"
90
+ }
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "name": "Invertedcase Text",
96
+ "url": "https://textnerd-io.p.rapidapi.com/api/invertedcase",
97
+ "description": "Invert case in every letter.\nExample 1: 'tHe rOaD WaRrIoR' => 'ThE RoAd wArRiOr'\nExample 2: 'ThE RoAd wArRiOr' => 'tHe rOaD WaRrIoR'\n\nSee the About page for more information and limits.",
98
+ "method": "POST",
99
+ "required_parameters": [],
100
+ "optional_parameters": [],
101
+ "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/invertedcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
102
+ "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/invertedcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
103
+ "test_endpoint": "",
104
+ "statuscode": 200,
105
+ "schema": {
106
+ "type": "object",
107
+ "properties": {
108
+ "inputText": {
109
+ "type": "string"
110
+ },
111
+ "invertedcaseText": {
112
+ "type": "string"
113
+ },
114
+ "invertedcaseTextLenght": {
115
+ "type": "integer"
116
+ },
117
+ "invertedcaseWordCount": {
118
+ "type": "integer"
119
+ },
120
+ "invertedcaseSentenceCount": {
121
+ "type": "integer"
122
+ },
123
+ "invertedcaseParagraphCount": {
124
+ "type": "integer"
125
+ },
126
+ "invertedcaseSpaceCount": {
127
+ "type": "integer"
128
+ }
129
+ }
130
+ }
131
+ },
132
+ {
133
+ "name": "Capcase Text",
134
+ "url": "https://textnerd-io.p.rapidapi.com/api/capcase",
135
+ "description": "Convert all words to capital case.\nExample: 'the road warrior' => 'The Road Warrior'\n\nSee the About page for more information and limits.",
136
+ "method": "POST",
137
+ "required_parameters": [],
138
+ "optional_parameters": [],
139
+ "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/capcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
140
+ "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/capcase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
141
+ "test_endpoint": "",
142
+ "statuscode": 200,
143
+ "schema": {
144
+ "type": "object",
145
+ "properties": {
146
+ "inputText": {
147
+ "type": "string"
148
+ },
149
+ "capcaseText": {
150
+ "type": "string"
151
+ },
152
+ "capcaseTextLenght": {
153
+ "type": "integer"
154
+ },
155
+ "capcaseWordCount": {
156
+ "type": "integer"
157
+ },
158
+ "capcaseSentenceCount": {
159
+ "type": "integer"
160
+ },
161
+ "capcaseParagraphCount": {
162
+ "type": "integer"
163
+ },
164
+ "capcaseSpaceCount": {
165
+ "type": "integer"
166
+ }
167
+ }
168
+ }
169
+ },
170
+ {
171
+ "name": "Lowercase Text",
172
+ "url": "https://textnerd-io.p.rapidapi.com/api/lowercase",
173
+ "description": "Convert all letters in all words to lower case.\nExample: 'THE ROAD WARRIOR' => 'the road warrior'\n\nSee the About page for more information and limits.",
174
+ "method": "POST",
175
+ "required_parameters": [],
176
+ "optional_parameters": [],
177
+ "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/lowercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
178
+ "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/lowercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
179
+ "test_endpoint": "",
180
+ "statuscode": 200,
181
+ "schema": {
182
+ "type": "object",
183
+ "properties": {
184
+ "inputText": {
185
+ "type": "string"
186
+ },
187
+ "lowercaseText": {
188
+ "type": "string"
189
+ },
190
+ "lowercaseTextLenght": {
191
+ "type": "integer"
192
+ },
193
+ "lowercaseWordCount": {
194
+ "type": "integer"
195
+ },
196
+ "lowercaseSentenceCount": {
197
+ "type": "integer"
198
+ },
199
+ "lowercaseParagraphCount": {
200
+ "type": "integer"
201
+ },
202
+ "lowercaseSpaceCount": {
203
+ "type": "integer"
204
+ }
205
+ }
206
+ }
207
+ },
208
+ {
209
+ "name": "Uppercase Text",
210
+ "url": "https://textnerd-io.p.rapidapi.com/api/uppercase",
211
+ "description": "Convert all letters in all words to upper case.\nExample: 'the road warrior' => 'THE ROAD WARRIOR'\n\nSee the About page for more information and limits.",
212
+ "method": "POST",
213
+ "required_parameters": [],
214
+ "optional_parameters": [],
215
+ "code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/uppercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
216
+ "convert_code": "import requests\n\nurl = \"https://textnerd-io.p.rapidapi.com/api/uppercase\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textnerd-io.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
217
+ "test_endpoint": "",
218
+ "statuscode": 200,
219
+ "schema": {
220
+ "type": "object",
221
+ "properties": {
222
+ "inputText": {
223
+ "type": "string"
224
+ },
225
+ "uppercaseText": {
226
+ "type": "string"
227
+ },
228
+ "uppercaseTextLenght": {
229
+ "type": "integer"
230
+ },
231
+ "uppercaseWordCount": {
232
+ "type": "integer"
233
+ },
234
+ "uppercaseSentenceCount": {
235
+ "type": "integer"
236
+ },
237
+ "uppercaseParagraphCount": {
238
+ "type": "integer"
239
+ },
240
+ "uppercaseSpaceCount": {
241
+ "type": "integer"
242
+ }
243
+ }
244
+ }
245
+ }
246
+ ]
247
+ }
toolbench/toolenv/tools/Text_Analysis/textrewrite_com.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "TextRewrite.com",
3
+ "tool_description": "Rewrite text with our machine learning based technology. After sign-up you can use http://textrewrite.com/tool",
4
+ "title": "TextRewrite.com",
5
+ "pricing": "FREEMIUM",
6
+ "score": null,
7
+ "home_url": "https://rapidapi.com/microbrands/api/textrewrite-com/",
8
+ "host": "textrewrite-com.p.rapidapi.com",
9
+ "api_list": [
10
+ {
11
+ "name": "Rewrite Text (GET for short texts)",
12
+ "url": "https://textrewrite-com.p.rapidapi.com/api.php",
13
+ "description": "Just insert your text and have it rewritten instantly.",
14
+ "method": "GET",
15
+ "required_parameters": [
16
+ {
17
+ "name": "text",
18
+ "type": "STRING",
19
+ "description": "Text to be rewritten.",
20
+ "default": "A great day to give this API a try."
21
+ }
22
+ ],
23
+ "optional_parameters": [
24
+ {
25
+ "name": "format",
26
+ "type": "ENUM",
27
+ "description": "Text format (optional). Can be `text` or `html`. Default is `text`.",
28
+ "default": ""
29
+ }
30
+ ],
31
+ "code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
32
+ "statuscode": 111,
33
+ "body": "",
34
+ "headers": "",
35
+ "schema": ""
36
+ },
37
+ {
38
+ "name": "Rewrite Text (POST)",
39
+ "url": "https://textrewrite-com.p.rapidapi.com/api.php",
40
+ "description": "Just insert your text and have it rewritten instantly.",
41
+ "method": "POST",
42
+ "required_parameters": [
43
+ {
44
+ "name": "text",
45
+ "type": "STRING",
46
+ "description": "Text to be rewritten.",
47
+ "default": "A great day to give this API a try."
48
+ }
49
+ ],
50
+ "optional_parameters": [
51
+ {
52
+ "name": "format",
53
+ "type": "ENUM",
54
+ "description": "Text format (optional). Can be `text` or `html`. Default is `text`.",
55
+ "default": ""
56
+ }
57
+ ],
58
+ "code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
59
+ "statuscode": 111,
60
+ "body": "",
61
+ "headers": "",
62
+ "schema": ""
63
+ },
64
+ {
65
+ "name": "Rewrite Text (POST)",
66
+ "url": "https://textrewrite-com.p.rapidapi.com/api.php",
67
+ "description": "Just insert your text and have it rewritten instantly.",
68
+ "method": "POST",
69
+ "required_parameters": [
70
+ {
71
+ "name": "text",
72
+ "type": "STRING",
73
+ "description": "Text to be rewritten.",
74
+ "default": "A great day to give this API a try."
75
+ }
76
+ ],
77
+ "optional_parameters": [
78
+ {
79
+ "name": "format",
80
+ "type": "ENUM",
81
+ "description": "Text format (optional). Can be `text` or `html`. Default is `text`.",
82
+ "default": ""
83
+ }
84
+ ],
85
+ "code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"format\": \"\", \"text\": \"A great day to give this API a try.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
86
+ "convert_code": "import requests\n\nurl = \"https://textrewrite-com.p.rapidapi.com/api.php\"\nquerystring = {\"format\": \"\", \"text\": \"A great day to give this API a try.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"textrewrite-com.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
87
+ "test_endpoint": ""
88
+ }
89
+ ]
90
+ }
toolbench/toolenv/tools/Text_Analysis/textrewrite_com/api.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def rewrite_text_get_for_short_texts(text: str, format: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Just insert your text and have it rewritten instantly."
12
+ text: Text to be rewritten.
13
+ format: Text format (optional). Can be `text` or `html`. Default is `text`.
14
+
15
+ """
16
+ url = f"https://textrewrite-com.p.rapidapi.com/api.php"
17
+ querystring = {'text': text, }
18
+ if format:
19
+ querystring['format'] = format
20
+
21
+ headers = {
22
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
23
+ "X-RapidAPI-Host": "textrewrite-com.p.rapidapi.com"
24
+ }
25
+
26
+
27
+ response = requests.get(url, headers=headers, params=querystring)
28
+ try:
29
+ observation = response.json()
30
+ except:
31
+ observation = response.text
32
+ return observation
33
+
toolbench/toolenv/tools/Text_Analysis/texttoimage.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_db60049b-24c9-4cc1-b042-dec7c9daea1b",
3
+ "tool_description": "Converts text to relevant images",
4
+ "home_url": "https://rapidapi.com/texttoimage-api-texttoimage-api-default/api/texttoimage/",
5
+ "name": "TextToImage",
6
+ "title": "TextToImage",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TextToImage",
9
+ "score": {
10
+ "avgServiceLevel": 88,
11
+ "avgLatency": 2489,
12
+ "avgSuccessRate": 83,
13
+ "popularityScore": 9.4,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "texttoimage.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "POST /Image",
20
+ "url": "https://texttoimage.p.rapidapi.com/image",
21
+ "description": "Submit source text and get up to 10 contextually relevant image based on Natural Language Processing (NLP) performed on provided search_text.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://texttoimage.p.rapidapi.com/image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"texttoimage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://texttoimage.p.rapidapi.com/image\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"texttoimage.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ]
30
+ }
toolbench/toolenv/tools/Text_Analysis/the_best_keyword_density_analyzer_100_percent_accuracy_approved.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_c86ce12f-7091-474a-98db-2772f6739555",
3
+ "tool_description": "A keyword density tool that is built for the fastest and 100% accurate response. Optimizing the keyword density will boost the visibility as well as the ranking on search engine results page. An analyzer like never before. Just tap, proceed and voila!",
4
+ "home_url": "https://rapidapi.com/Papersdrop/api/the-best-keyword-density-analyzer-100-percent-accuracy-approved/",
5
+ "name": "The Best Keyword Density Analyzer -100 percent accuracy approved",
6
+ "title": "The Best Keyword Density Analyzer -100 percent accuracy approved",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "The Best Keyword Density Analyzer -100 percent accuracy approved",
9
+ "score": null,
10
+ "host": "the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Keyword Density Analyzer",
14
+ "url": "https://the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com/blogs/kda",
15
+ "description": "Analyze keyword Density in the given Passage",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com/blogs/kda\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com/blogs/kda\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"the-best-keyword-density-analyzer-100-percent-accuracy-approved.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": "",
22
+ "statuscode": 200,
23
+ "schema": {}
24
+ }
25
+ ]
26
+ }
toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "Thesaurus - Multi Language Synonyms",
3
+ "tool_description": "Get similar words in multiple languages. Largest web database @ 35 million synonyms in 26 languages.",
4
+ "title": "Thesaurus - Multi Language Synonyms",
5
+ "pricing": "FREEMIUM",
6
+ "score": {
7
+ "avgServiceLevel": 100,
8
+ "avgLatency": 397,
9
+ "avgSuccessRate": 100,
10
+ "popularityScore": 8.8,
11
+ "__typename": "Score"
12
+ },
13
+ "home_url": "https://rapidapi.com/grantmk-3i5afngdA_Q/api/thesaurus-multi-language-synonyms/",
14
+ "host": "thesaurus-multi-language-synonyms.p.rapidapi.com",
15
+ "api_list": [
16
+ {
17
+ "name": "Retrieve Synonym",
18
+ "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym",
19
+ "description": "Send a language, locale and word to get a full list of synonyms for that word.\n\n**POST request:**\n/synonym\n\n**Example body data in JSON:**\n{\n \"word\": \"table\",\n \"language\": \"EN\",\n \"locale\": \"US\"\n}\n\n**Languages and Locales:**\nAR/EG: Arabic(Egypt)\nBG/BG: Bulgarian\nCA/ES: Catalan\nCS/CZ: Czech\nDA/DK: Danish\nDE/CH: German(Swiss)\nDE/DE: German(Germany)\nEL/GR: Greek\nEN/US: English(US)\nES/ES: Spanish\nFR/FR: French\nGA/IE: Gaelic(Ireland)\nHU/HU: Hungarian\nIT/IT: Italian\nLB/LU: Luxembourgish\nNB/NO: Norwegian\nNE/NP: Nepali\nNL/NL: Dutch\nPL/PL: Polish\nPT/PT: Portuguese\nRO/RO: Romanian\nRU/RU: Russian\nSK/SK: Slovak\nSL/SL: Slovenian\nSV/SE: Swedish\nUK/UA: Ukranian",
20
+ "method": "POST",
21
+ "required_parameters": [
22
+ {
23
+ "name": "locale",
24
+ "type": "STRING",
25
+ "description": "",
26
+ "default": "us"
27
+ },
28
+ {
29
+ "name": "word",
30
+ "type": "STRING",
31
+ "description": "",
32
+ "default": "table"
33
+ },
34
+ {
35
+ "name": "language",
36
+ "type": "STRING",
37
+ "description": "",
38
+ "default": "en"
39
+ }
40
+ ],
41
+ "optional_parameters": [],
42
+ "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym\"\nquerystring = {\"locale\": locale, \"word\": word, \"language\": language}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
43
+ "statuscode": 111,
44
+ "body": "",
45
+ "headers": "",
46
+ "schema": ""
47
+ },
48
+ {
49
+ "name": "Available Languages",
50
+ "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/availablelanguages",
51
+ "description": "Return available languages for thesaurus",
52
+ "method": "GET",
53
+ "required_parameters": [],
54
+ "optional_parameters": [],
55
+ "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/availablelanguages\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
56
+ "statuscode": 111,
57
+ "body": "",
58
+ "headers": "",
59
+ "schema": ""
60
+ },
61
+ {
62
+ "name": "Heartbeat",
63
+ "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/heartbeat",
64
+ "description": "Return available languages for thesaurus",
65
+ "method": "GET",
66
+ "required_parameters": [],
67
+ "optional_parameters": [],
68
+ "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/heartbeat\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers)\n\nprint(response.json())\n",
69
+ "statuscode": 111,
70
+ "body": "",
71
+ "headers": "",
72
+ "schema": ""
73
+ },
74
+ {
75
+ "name": "Retrieve Synonym",
76
+ "url": "https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym",
77
+ "description": "Send a language, locale and word to get a full list of synonyms for that word.\n\n**POST request:**\n/synonym\n\n**Example body data in JSON:**\n{\n \"word\": \"table\",\n \"language\": \"EN\",\n \"locale\": \"US\"\n}\n\n**Languages and Locales:**\nAR/EG: Arabic(Egypt)\nBG/BG: Bulgarian\nCA/ES: Catalan\nCS/CZ: Czech\nDA/DK: Danish\nDE/CH: German(Swiss)\nDE/DE: German(Germany)\nEL/GR: Greek\nEN/US: English(US)\nES/ES: Spanish\nFR/FR: French\nGA/IE: Gaelic(Ireland)\nHU/HU: Hungarian\nIT/IT: Italian\nLB/LU: Luxembourgish\nNB/NO: Norwegian\nNE/NP: Nepali\nNL/NL: Dutch\nPL/PL: Polish\nPT/PT: Portuguese\nRO/RO: Romanian\nRU/RU: Russian\nSK/SK: Slovak\nSL/SL: Slovenian\nSV/SE: Swedish\nUK/UA: Ukranian",
78
+ "method": "POST",
79
+ "required_parameters": [
80
+ {
81
+ "name": "locale",
82
+ "type": "STRING",
83
+ "description": "",
84
+ "default": "us"
85
+ },
86
+ {
87
+ "name": "word",
88
+ "type": "STRING",
89
+ "description": "",
90
+ "default": "table"
91
+ },
92
+ {
93
+ "name": "language",
94
+ "type": "STRING",
95
+ "description": "",
96
+ "default": "en"
97
+ }
98
+ ],
99
+ "optional_parameters": [],
100
+ "code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym\"\nquerystring = {\"locale\": \"us\", \"word\": \"table\", \"language\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
101
+ "convert_code": "import requests\n\nurl = \"https://thesaurus-multi-language-synonyms.p.rapidapi.com/synonym\"\nquerystring = {\"locale\": \"us\", \"word\": \"table\", \"language\": \"en\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"thesaurus-multi-language-synonyms.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
102
+ "test_endpoint": ""
103
+ }
104
+ ]
105
+ }
toolbench/toolenv/tools/Text_Analysis/thesaurus_multi_language_synonyms/api.py ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def available_languages(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Return available languages for thesaurus"
12
+
13
+ """
14
+ url = f"https://thesaurus-multi-language-synonyms.p.rapidapi.com/availablelanguages"
15
+ querystring = {}
16
+
17
+ headers = {
18
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
19
+ "X-RapidAPI-Host": "thesaurus-multi-language-synonyms.p.rapidapi.com"
20
+ }
21
+
22
+
23
+ response = requests.get(url, headers=headers, params=querystring)
24
+ try:
25
+ observation = response.json()
26
+ except:
27
+ observation = response.text
28
+ return observation
29
+
30
+ def heartbeat(toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
31
+ """
32
+ "Return available languages for thesaurus"
33
+
34
+ """
35
+ url = f"https://thesaurus-multi-language-synonyms.p.rapidapi.com/heartbeat"
36
+ querystring = {}
37
+
38
+ headers = {
39
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
40
+ "X-RapidAPI-Host": "thesaurus-multi-language-synonyms.p.rapidapi.com"
41
+ }
42
+
43
+
44
+ response = requests.get(url, headers=headers, params=querystring)
45
+ try:
46
+ observation = response.json()
47
+ except:
48
+ observation = response.text
49
+ return observation
50
+
toolbench/toolenv/tools/Text_Analysis/ticket_classification.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_b26660c7-f196-44aa-9555-d084ca792cda",
3
+ "tool_description": "This API predicts the category of a given ticket, for customer support domain.",
4
+ "home_url": "https://rapidapi.com/metatext-metatext-default/api/ticket-classification/",
5
+ "name": "Ticket Classification",
6
+ "title": "Ticket Classification",
7
+ "pricing": "PAID",
8
+ "tool_name": "Ticket Classification",
9
+ "score": null,
10
+ "host": "ticket-classification.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Ticket Classification",
14
+ "url": "https://ticket-classification.p.rapidapi.com/ticket-classification",
15
+ "description": "Support Ticket Classification.",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://ticket-classification.p.rapidapi.com/ticket-classification\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ticket-classification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://ticket-classification.p.rapidapi.com/ticket-classification\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"ticket-classification.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Text_Analysis/tigon_cv_parser.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_e471642f-ec0e-4aa3-a41a-47f8706e7131",
3
+ "tool_description": "Parsing Resume files accurately at scale",
4
+ "home_url": "https://rapidapi.com/danielgorlo/api/tigon-cv-parser/",
5
+ "name": "Tigon CV Parser",
6
+ "title": "Tigon CV Parser",
7
+ "pricing": "PAID",
8
+ "tool_name": "Tigon CV Parser",
9
+ "score": null,
10
+ "host": "tigon-cv-parser.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Parse CV",
14
+ "url": "https://tigon-cv-parser.p.rapidapi.com/api/cv/parse",
15
+ "description": "Parses a CV and returns all relevant fields on candidate",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "apiKey",
20
+ "type": "STRING",
21
+ "description": "",
22
+ "default": "TEST_API_KEY"
23
+ },
24
+ {
25
+ "name": "cv",
26
+ "type": "BINARY",
27
+ "description": "",
28
+ "default": ""
29
+ }
30
+ ],
31
+ "optional_parameters": [],
32
+ "code": "import requests\n\nurl = \"https://tigon-cv-parser.p.rapidapi.com/api/cv/parse\"\nquerystring = {\"apiKey\": \"TEST_API_KEY\", \"cv\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tigon-cv-parser.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
33
+ "convert_code": "import requests\n\nurl = \"https://tigon-cv-parser.p.rapidapi.com/api/cv/parse\"\nquerystring = {\"apiKey\": \"TEST_API_KEY\", \"cv\": \"\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tigon-cv-parser.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
34
+ "test_endpoint": ""
35
+ }
36
+ ]
37
+ }
toolbench/toolenv/tools/Text_Analysis/time_interpreter.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_d8b7feef-88c6-4fa5-9d3c-feac04763fdd",
3
+ "tool_description": "This API is a powerful tool for converting human text into timestamps. With this Time Interpreter API, users can quickly and accurately convert natural language descriptions of time, such as \"yesterday at 3pm\" or \"next Friday at 7am,\" into precise timestamp values that can be used in a wide range of applications. Whether you're building a scheduling app or analyzing data, our API can help streamline your workflow and save you valuable time.\n\nIf you have issues with responses or questions plea...",
4
+ "home_url": "https://rapidapi.com/sid-technologies-llc-sid-technologies-llc-default/api/time-interpreter/",
5
+ "name": "Time Interpreter",
6
+ "title": "Time Interpreter",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Time Interpreter",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 727,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 8.6,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "time-interpreter.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "time interpreter endpoint",
20
+ "url": "https://time-interpreter.p.rapidapi.com/time",
21
+ "description": "main endpoint in which you POST a simple body `{ \"message\": \"tomorrow at 3pm\" }` and get a timestamp as a return object. The `time_zone` field is optional.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://time-interpreter.p.rapidapi.com/time\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"time-interpreter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://time-interpreter.p.rapidapi.com/time\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"time-interpreter.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {
30
+ "type": "object",
31
+ "properties": {
32
+ "time_zone": {
33
+ "type": "string"
34
+ },
35
+ "date_time": {
36
+ "type": "string"
37
+ },
38
+ "start_time": {
39
+ "type": "string"
40
+ },
41
+ "end_time": {
42
+ "type": "string"
43
+ },
44
+ "message_grains": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string"
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ]
54
+ }
toolbench/toolenv/tools/Text_Analysis/title_generation.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_64cb0fb3-dc99-491f-ad3b-608bb8f66b60",
3
+ "tool_description": "Generate a unique title/topic for your article/news",
4
+ "home_url": "https://rapidapi.com/omer.arshad/api/title-generation/",
5
+ "name": "title generation",
6
+ "title": "title generation",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "title generation",
9
+ "score": null,
10
+ "host": "title-generation.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "title",
14
+ "url": "https://title-generation.p.rapidapi.com/title",
15
+ "description": "payload format for the api\n\n{\n \"article\": \"Simple English Wikipedia is an online encyclopedia aimed at English learners. Its articles are expected to contain fewer words and simpler grammar structures than those in their Main English Wikipedia counterpart. Much of the popularity of using Wikipedia for research in Simplification comes from publicly available sentence alignments between \u201cequivalent\u201d articles in Main and Simple English Wikipedia.\",\n \"is_diverse\":false,\n \"diversity\":1.4\n}",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://title-generation.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"title-generation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://title-generation.p.rapidapi.com/title\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"title-generation.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Text_Analysis/tldr.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_ac35bef6-7d73-4fb0-b038-0d41fd07eeb2",
3
+ "tool_description": "Summarize any text using state of the art artificial intelligence technology in a human-like manner.",
4
+ "home_url": "https://rapidapi.com/epicfortnitegamer0123456789/api/tldr2/",
5
+ "name": "TLDR",
6
+ "title": "TLDR",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TLDR",
9
+ "score": null,
10
+ "host": "tldr2.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "summary",
14
+ "url": "https://tldr2.p.rapidapi.com/summary",
15
+ "description": "The API endpoint is /summary and it only accepts POST requests.\n\nProperties:\ntext (required): The text to be summarized. The length of the text should not exceed 2500 characters.",
16
+ "method": "POST",
17
+ "required_parameters": [
18
+ {
19
+ "name": "text",
20
+ "type": "STRING",
21
+ "description": "",
22
+ "default": "This is some example text to summarize."
23
+ }
24
+ ],
25
+ "optional_parameters": [],
26
+ "code": "import requests\n\nurl = \"https://tldr2.p.rapidapi.com/summary\"\nquerystring = {\"text\": \"This is some example text to summarize.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
27
+ "convert_code": "import requests\n\nurl = \"https://tldr2.p.rapidapi.com/summary\"\nquerystring = {\"text\": \"This is some example text to summarize.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr2.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
28
+ "test_endpoint": ""
29
+ }
30
+ ]
31
+ }
toolbench/toolenv/tools/Text_Analysis/tldr_summary.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_c43fc9cc-f6d5-42e2-bc79-221a44dff387",
3
+ "tool_description": "Get extractive summaries for you textual data ",
4
+ "home_url": "https://rapidapi.com/santiagobassani96/api/tldr-summary/",
5
+ "name": "TLDR Summary",
6
+ "title": "TLDR Summary",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "TLDR Summary",
9
+ "score": null,
10
+ "host": "tldr-summary.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Extractive Summary",
14
+ "url": "https://tldr-summary.p.rapidapi.com/api/v2/summary/",
15
+ "description": "Get a list of phrases extracted from the original text which best describe the keypoints.",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://tldr-summary.p.rapidapi.com/api/v2/summary/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-summary.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://tldr-summary.p.rapidapi.com/api/v2/summary/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-summary.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ }
23
+ ]
24
+ }
toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"TLDR Text Analysis",
3
+ "tool_description":"TLDR (Too Long Didn't Read) is a Text Analysis API that allows you to extract summaries and ranked keywords from articles on web. ",
4
+ "title":"TLDR Text Analysis",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":98,
8
+ "avgLatency":781,
9
+ "avgSuccessRate":98,
10
+ "popularityScore":9.4,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/AmolMavuduru/api/tldr-text-analysis/",
14
+ "host":"tldr-text-analysis.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Summarize",
18
+ "url":"https://tldr-text-analysis.p.rapidapi.com/summarize/",
19
+ "description":"Summarizes an article by fetching text from a specified URL or reading the input text and generating a summary for a web article.",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"text",
24
+ "type":"STRING",
25
+ "description":"This field contains the text input for the text summarization request. It can be either a URL or the raw text of an article.",
26
+ "default":""
27
+ },
28
+ {
29
+ "name":"max_sentences",
30
+ "type":"NUMBER",
31
+ "description":"",
32
+ "default":"5"
33
+ }
34
+ ],
35
+ "optional_parameters":[],
36
+ "code":"import requests\n\nurl = \"https://tldr-text-analysis.p.rapidapi.com/summarize/\"\nquerystring = {\"text\": text, \"max_sentences\": max_sentences}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-text-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
37
+ "statuscode":200,
38
+ "body":{
39
+ "key1":"value",
40
+ "key2":"value"
41
+ },
42
+ "headers":{},
43
+ "schema":{}
44
+ },
45
+ {
46
+ "name":"Sentiment Analysis",
47
+ "url":"https://tldr-text-analysis.p.rapidapi.com/sentiment_analysis/",
48
+ "description":"Performs sentiment analysis on a web article or text input.",
49
+ "method":"GET",
50
+ "required_parameters":[
51
+ {
52
+ "name":"text",
53
+ "type":"STRING",
54
+ "description":"This field contains the text input for the sentiment analysis request. It can be either a URL or the raw text of an article.",
55
+ "default":""
56
+ }
57
+ ],
58
+ "optional_parameters":[],
59
+ "code":"import requests\n\nurl = \"https://tldr-text-analysis.p.rapidapi.com/sentiment_analysis/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-text-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
60
+ "statuscode":200,
61
+ "body":{
62
+ "key1":"value",
63
+ "key2":"value"
64
+ },
65
+ "headers":{},
66
+ "schema":{}
67
+ },
68
+ {
69
+ "name":"Extract Keywords",
70
+ "url":"https://tldr-text-analysis.p.rapidapi.com/keywords/",
71
+ "description":"Extracts keywords from an article given the URL for the article and the number of keywords to search for.",
72
+ "method":"GET",
73
+ "required_parameters":[
74
+ {
75
+ "name":"n_keywords",
76
+ "type":"NUMBER",
77
+ "description":"",
78
+ "default":"5"
79
+ },
80
+ {
81
+ "name":"text",
82
+ "type":"STRING",
83
+ "description":"This field contains the text input for the keyword extraction request. It can be either a URL or the raw text of an article.",
84
+ "default":""
85
+ }
86
+ ],
87
+ "optional_parameters":[],
88
+ "code":"import requests\n\nurl = \"https://tldr-text-analysis.p.rapidapi.com/keywords/\"\nquerystring = {\"n_keywords\": n_keywords, \"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"tldr-text-analysis.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
89
+ "statuscode":200,
90
+ "body":{
91
+ "key1":"value",
92
+ "key2":"value"
93
+ },
94
+ "headers":{},
95
+ "schema":{}
96
+ }
97
+ ]
98
+ }
toolbench/toolenv/tools/Text_Analysis/tldr_text_analysis/api.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def summarize(text: str, max_sentences: int, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Summarizes an article by fetching text from a specified URL or reading the input text and generating a summary for a web article."
12
+ text: This field contains the text input for the text summarization request. It can be either a URL or the raw text of an article.
13
+
14
+ """
15
+ url = f"https://tldr-text-analysis.p.rapidapi.com/summarize/"
16
+ querystring = {'text': text, 'max_sentences': max_sentences, }
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "tldr-text-analysis.p.rapidapi.com"
21
+ }
22
+
23
+
24
+ response = requests.get(url, headers=headers, params=querystring)
25
+ try:
26
+ observation = response.json()
27
+ except:
28
+ observation = response.text
29
+ return observation
30
+
31
+ def sentiment_analysis(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
32
+ """
33
+ "Performs sentiment analysis on a web article or text input."
34
+ text: This field contains the text input for the sentiment analysis request. It can be either a URL or the raw text of an article.
35
+
36
+ """
37
+ url = f"https://tldr-text-analysis.p.rapidapi.com/sentiment_analysis/"
38
+ querystring = {'text': text, }
39
+
40
+ headers = {
41
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
42
+ "X-RapidAPI-Host": "tldr-text-analysis.p.rapidapi.com"
43
+ }
44
+
45
+
46
+ response = requests.get(url, headers=headers, params=querystring)
47
+ try:
48
+ observation = response.json()
49
+ except:
50
+ observation = response.text
51
+ return observation
52
+
53
+ def extract_keywords(n_keywords: int, text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
54
+ """
55
+ "Extracts keywords from an article given the URL for the article and the number of keywords to search for."
56
+ text: This field contains the text input for the keyword extraction request. It can be either a URL or the raw text of an article.
57
+
58
+ """
59
+ url = f"https://tldr-text-analysis.p.rapidapi.com/keywords/"
60
+ querystring = {'n_keywords': n_keywords, 'text': text, }
61
+
62
+ headers = {
63
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
64
+ "X-RapidAPI-Host": "tldr-text-analysis.p.rapidapi.com"
65
+ }
66
+
67
+
68
+ response = requests.get(url, headers=headers, params=querystring)
69
+ try:
70
+ observation = response.json()
71
+ except:
72
+ observation = response.text
73
+ return observation
74
+
toolbench/toolenv/tools/Text_Analysis/topic_tagging.json ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name": "Topic Tagging",
3
+ "tool_description": "Automatically generate topics and keywords for articles and blogs.",
4
+ "title": "Topic Tagging",
5
+ "pricing": "FREEMIUM",
6
+ "score": {
7
+ "avgServiceLevel": 100,
8
+ "avgLatency": 804,
9
+ "avgSuccessRate": 100,
10
+ "popularityScore": 9.7,
11
+ "__typename": "Score"
12
+ },
13
+ "home_url": "https://rapidapi.com/twinword/api/topic-tagging/",
14
+ "host": "twinword-topic-tagging.p.rapidapi.com",
15
+ "api_list": [
16
+ {
17
+ "name": "Generate (get)",
18
+ "url": "https://twinword-topic-tagging.p.rapidapi.com/generate/",
19
+ "description": "Detect and generate human like topics to the given text.",
20
+ "method": "GET",
21
+ "required_parameters": [
22
+ {
23
+ "name": "text",
24
+ "type": "STRING",
25
+ "description": "Enter some text to generate topics",
26
+ "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems."
27
+ }
28
+ ],
29
+ "optional_parameters": [],
30
+ "code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
31
+ "statuscode": 200,
32
+ "body": {
33
+ "keyword": {
34
+ "computer": 4,
35
+ "compute": 2,
36
+ "structure": 2,
37
+ "information": 2,
38
+ "study": 2,
39
+ "science": 2,
40
+ "cell": 1,
41
+ "alternate": 1,
42
+ "biological": 1,
43
+ "gene": 1
44
+ },
45
+ "topic": {
46
+ "computer science": 0.5010800744879,
47
+ "study": 0.30018621973929,
48
+ "human": 0.23091247672253,
49
+ "machine": 0.23091247672253,
50
+ "system": 0.23091247672253,
51
+ "art": 0.20782122905028,
52
+ "technology": 0.18472998137803,
53
+ "development": 0.18472998137803,
54
+ "number": 0.18472998137803
55
+ },
56
+ "version": "5.0.0",
57
+ "author": "twinword inc.",
58
+ "email": "feedback@twinword.com",
59
+ "result_code": "200",
60
+ "result_msg": "Success"
61
+ },
62
+ "headers": {
63
+ "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400",
64
+ "cf-cache-status": "DYNAMIC",
65
+ "cf-ray": "599ea0fc6aff06b9-NRT",
66
+ "cf-request-id": "02f702f1c1000006b9b2a67200000001",
67
+ "content-type": "application/json",
68
+ "date": "Wed, 27 May 2020 09:15:00 GMT",
69
+ "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
70
+ "server": "RapidAPI-1.1.7",
71
+ "set-cookie": [
72
+ "__cfduid=d89318bb156c83115b899f4a1e45acdfe1590570899; expires=Fri, 26-Jun-20 09:14:59 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure"
73
+ ],
74
+ "strict-transport-security": "max-age=15552000; includeSubDomains; preload",
75
+ "x-content-type-options": "nosniff",
76
+ "x-rapidapi-region": "AWS - ap-northeast-1",
77
+ "x-rapidapi-version": "1.1.7",
78
+ "x-ratelimit-requests-limit": "30000",
79
+ "x-ratelimit-requests-remaining": "29997",
80
+ "content-length": "506",
81
+ "connection": "Close"
82
+ },
83
+ "schema": {
84
+ "properties": {
85
+ "author": {
86
+ "type": "string"
87
+ },
88
+ "email": {
89
+ "format": "email",
90
+ "type": "string"
91
+ },
92
+ "keyword": {
93
+ "properties": {
94
+ "alternate": {
95
+ "type": "integer"
96
+ },
97
+ "biological": {
98
+ "type": "integer"
99
+ },
100
+ "cell": {
101
+ "type": "integer"
102
+ },
103
+ "compute": {
104
+ "type": "integer"
105
+ },
106
+ "computer": {
107
+ "type": "integer"
108
+ },
109
+ "gene": {
110
+ "type": "integer"
111
+ },
112
+ "information": {
113
+ "type": "integer"
114
+ },
115
+ "science": {
116
+ "type": "integer"
117
+ },
118
+ "structure": {
119
+ "type": "integer"
120
+ },
121
+ "study": {
122
+ "type": "integer"
123
+ }
124
+ },
125
+ "type": "object"
126
+ },
127
+ "result_code": {
128
+ "format": "color",
129
+ "type": "string"
130
+ },
131
+ "result_msg": {
132
+ "type": "string"
133
+ },
134
+ "topic": {
135
+ "properties": {
136
+ "art": {
137
+ "type": "number"
138
+ },
139
+ "computer science": {
140
+ "type": "number"
141
+ },
142
+ "development": {
143
+ "type": "number"
144
+ },
145
+ "human": {
146
+ "type": "number"
147
+ },
148
+ "machine": {
149
+ "type": "number"
150
+ },
151
+ "number": {
152
+ "type": "number"
153
+ },
154
+ "study": {
155
+ "type": "number"
156
+ },
157
+ "system": {
158
+ "type": "number"
159
+ },
160
+ "technology": {
161
+ "type": "number"
162
+ }
163
+ },
164
+ "type": "object"
165
+ },
166
+ "version": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "type": "object"
171
+ }
172
+ },
173
+ {
174
+ "name": "Generate (post)",
175
+ "url": "https://twinword-topic-tagging.p.rapidapi.com/generate/",
176
+ "description": "Detect and generate human like topics to the given text.",
177
+ "method": "POST",
178
+ "required_parameters": [
179
+ {
180
+ "name": "text",
181
+ "type": "STRING",
182
+ "description": "Enter some text to generate topics",
183
+ "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems."
184
+ }
185
+ ],
186
+ "optional_parameters": [],
187
+ "code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": text}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n}\n\nresponse = requests.post(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
188
+ "statuscode": 200,
189
+ "body": {
190
+ "author": "twinword inc.",
191
+ "email": "help@twinword.com",
192
+ "keyword": {
193
+ "cell": 1,
194
+ "compute": 2,
195
+ "computer": 4,
196
+ "design": 1,
197
+ "information": 2,
198
+ "memory": 1,
199
+ "science": 2,
200
+ "structure": 2,
201
+ "study": 2,
202
+ "transcribe": 1
203
+ },
204
+ "result_code": "200",
205
+ "result_msg": "Success",
206
+ "topic": {
207
+ "art": 0.20782122905028,
208
+ "biology": 0.18472998137803,
209
+ "computer science": 0.5010800744879,
210
+ "human": 0.23091247672253,
211
+ "machine": 0.23091247672253,
212
+ "research": 0.18472998137803,
213
+ "study": 0.30018621973929,
214
+ "system": 0.23091247672253,
215
+ "technology": 0.18472998137803
216
+ },
217
+ "version": "5.0.0"
218
+ },
219
+ "headers": {
220
+ "alt-svc": "h3-27=\":443\"; ma=86400, h3-25=\":443\"; ma=86400, h3-24=\":443\"; ma=86400, h3-23=\":443\"; ma=86400",
221
+ "cf-cache-status": "DYNAMIC",
222
+ "cf-ray": "599ea17fabcbd649-NRT",
223
+ "cf-request-id": "02f70343c70000d64911128200000001",
224
+ "content-type": "application/json",
225
+ "date": "Wed, 27 May 2020 09:15:21 GMT",
226
+ "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
227
+ "server": "RapidAPI-1.1.7",
228
+ "set-cookie": [
229
+ "__cfduid=dfbef479ec9fd1cd23e2df4d6f1e24a181590570920; expires=Fri, 26-Jun-20 09:15:20 GMT; path=/; domain=.twinword.com; HttpOnly; SameSite=Lax; Secure"
230
+ ],
231
+ "strict-transport-security": "max-age=15552000; includeSubDomains; preload",
232
+ "x-content-type-options": "nosniff",
233
+ "x-rapidapi-region": "AWS - ap-northeast-1",
234
+ "x-rapidapi-version": "1.1.7",
235
+ "x-ratelimit-requests-limit": "30000",
236
+ "x-ratelimit-requests-remaining": "29996",
237
+ "content-length": "506",
238
+ "connection": "Close"
239
+ },
240
+ "schema": {}
241
+ },
242
+ {
243
+ "name": "Generate (post)",
244
+ "url": "https://twinword-topic-tagging.p.rapidapi.com/generate/",
245
+ "description": "Detect and generate human like topics to the given text.",
246
+ "method": "POST",
247
+ "required_parameters": [
248
+ {
249
+ "name": "text",
250
+ "type": "STRING",
251
+ "description": "Enter some text to generate topics",
252
+ "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems."
253
+ }
254
+ ],
255
+ "optional_parameters": [],
256
+ "code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
257
+ "convert_code": "import requests\n\nurl = \"https://twinword-topic-tagging.p.rapidapi.com/generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures (or algorithms) that underlie the acquisition, representation, processing, storage, communication of, and access to information, whether such information is encoded as bits in a computer memory or transcribed in genes and protein structures in a biological cell. An alternate, more succinct definition of computer science is the study of automating algorithmic processes that scale. A computer scientist specializes in the theory of computation and the design of computational systems.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-topic-tagging.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
258
+ "test_endpoint": "",
259
+ "statuscode": 200,
260
+ "schema": {}
261
+ }
262
+ ]
263
+ }
toolbench/toolenv/tools/Text_Analysis/topic_tagging/api.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def generate_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Detect and generate human like topics to the given text."
12
+ text: Enter some text to generate topics
13
+
14
+ """
15
+ url = f"https://twinword-topic-tagging.p.rapidapi.com/generate/"
16
+ querystring = {'text': text, }
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "twinword-topic-tagging.p.rapidapi.com"
21
+ }
22
+
23
+
24
+ response = requests.get(url, headers=headers, params=querystring)
25
+ try:
26
+ observation = response.json()
27
+ except:
28
+ observation = response.text
29
+ return observation
30
+
toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tool_name":"Toxicity & Profanity Detection AI-Hate Detection on Comments",
3
+ "tool_description":"Detect Toxicity in your text via AI 🔥Hate Detection Profanity Filter ✨ Accurate, Fast, and Multi-Language Support ❄️ ",
4
+ "title":"Toxicity & Profanity Detection AI-Hate Detection on Comments",
5
+ "pricing":"FREEMIUM",
6
+ "score":{
7
+ "avgServiceLevel":100,
8
+ "avgLatency":25526,
9
+ "avgSuccessRate":100,
10
+ "popularityScore":9.2,
11
+ "__typename":"Score"
12
+ },
13
+ "home_url":"https://rapidapi.com/NextAPI/api/toxicity-profanity-detection-ai-hate-detection-on-comments3/",
14
+ "host":"toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com",
15
+ "api_list":[
16
+ {
17
+ "name":"Get Toxicity Score",
18
+ "url":"https://toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com/moderation/",
19
+ "description":"Get the TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, & THREAT score for the given text. The score ranges from 0 to 1.\n\nYou can provide a language (recommended), or the language will be auto-detected.\n \nYou can provide the following languages, either the language itself or the language code: English (en), Spanish (es), Arabic (ar), Chinese (zh), Russian (ru), French (fr), German (de), Japanese (ja), Portuguese (pt), Italian (it), Korean (ko), Dutch (nl), Swedish (sv), Polish (pl), Indonesian (id), Czech (cs), Hindi (hi), Hinglish (hi-Latn)",
20
+ "method":"GET",
21
+ "required_parameters":[
22
+ {
23
+ "name":"text",
24
+ "type":"STRING",
25
+ "description":"",
26
+ "default":"This is an example text."
27
+ }
28
+ ],
29
+ "optional_parameters":[
30
+ {
31
+ "name":"language",
32
+ "type":"STRING",
33
+ "description":"",
34
+ "default":"english"
35
+ }
36
+ ],
37
+ "code":"import requests\n\nurl = \"https://toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com/moderation/\"\nquerystring = {\"text\": text, \"language\": language}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com\"\n}\n\nresponse = requests.get(url, headers=headers, params=querystring)\n\nprint(response.json())\n",
38
+ "statuscode":200,
39
+ "body":{
40
+ "attributes":{
41
+ "IDENTITY_ATTACK":0.01857083,
42
+ "THREAT":0.0089712385,
43
+ "PROFANITY":0.40185395,
44
+ "TOXICITY":0.5885171,
45
+ "SEVERE_TOXICITY":0.023076924,
46
+ "INSULT":0.5130944
47
+ },
48
+ "languages":[
49
+ "en"
50
+ ],
51
+ "detectedLanguages":[
52
+ "en",
53
+ "es",
54
+ "ru"
55
+ ]
56
+ },
57
+ "headers":{},
58
+ "schema":{
59
+ "type":"object",
60
+ "properties":{
61
+ "attributes":{
62
+ "type":"object",
63
+ "properties":{
64
+ "IDENTITY_ATTACK":{
65
+ "type":"number"
66
+ },
67
+ "THREAT":{
68
+ "type":"number"
69
+ },
70
+ "PROFANITY":{
71
+ "type":"number"
72
+ },
73
+ "TOXICITY":{
74
+ "type":"number"
75
+ },
76
+ "SEVERE_TOXICITY":{
77
+ "type":"number"
78
+ },
79
+ "INSULT":{
80
+ "type":"number"
81
+ }
82
+ }
83
+ },
84
+ "languages":{
85
+ "type":"array",
86
+ "items":{
87
+ "type":"string"
88
+ }
89
+ },
90
+ "detectedLanguages":{
91
+ "type":"array",
92
+ "items":{
93
+ "type":"string"
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ ]
100
+ }
toolbench/toolenv/tools/Text_Analysis/toxicity_profanity_detection_ai_hate_detection_on_comments/api.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def get_toxicity_score(text: str, language: str='english', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Get the TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, & THREAT score for the given text. The score ranges from 0 to 1.
12
+
13
+ You can provide a language (recommended), or the language will be auto-detected.
14
+
15
+ You can provide the following languages, either the language itself or the language code: English (en), Spanish (es), Arabic (ar), Chinese (zh), Russian (ru), French (fr), German (de), Japanese (ja), Portuguese (pt), Italian (it), Korean (ko), Dutch (nl), Swedish (sv), Polish (pl), Indonesian (id), Czech (cs), Hindi (hi), Hinglish (hi-Latn)"
16
+
17
+ """
18
+ url = f"https://toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com/moderation/"
19
+ querystring = {'text': text, }
20
+ if language:
21
+ querystring['language'] = language
22
+
23
+ headers = {
24
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
25
+ "X-RapidAPI-Host": "toxicity-profanity-detection-ai-hate-detection-on-comments3.p.rapidapi.com"
26
+ }
27
+
28
+
29
+ response = requests.get(url, headers=headers, params=querystring)
30
+ try:
31
+ observation = response.json()
32
+ except:
33
+ observation = response.text
34
+ return observation
35
+
toolbench/toolenv/tools/Text_Analysis/translator.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_0d3bb6c6-9dc4-4c7e-b81f-6141d886c18e",
3
+ "tool_description": "Translate any text you want with our Translator; we support ~100 languages. Please note that the expected time for processing a request can be 10-30 seconds during the beta testing period.",
4
+ "home_url": "https://rapidapi.com/ayfie-ayfie-default/api/translator82/",
5
+ "name": "Translator",
6
+ "title": "Translator",
7
+ "pricing": "FREE",
8
+ "tool_name": "Translator",
9
+ "score": {
10
+ "avgServiceLevel": 99,
11
+ "avgLatency": 4958,
12
+ "avgSuccessRate": 97,
13
+ "popularityScore": 9.5,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "translator82.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "translate_language",
20
+ "url": "https://translator82.p.rapidapi.com/api/translate",
21
+ "description": "Translate the provided text into the chosen language. The input language is auto-detected.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://translator82.p.rapidapi.com/api/translate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"translator82.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://translator82.p.rapidapi.com/api/translate\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"translator82.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {
30
+ "title": "Response",
31
+ "required": [
32
+ "result",
33
+ "model_used",
34
+ "time"
35
+ ],
36
+ "type": "object",
37
+ "properties": {
38
+ "result": {
39
+ "title": "Result",
40
+ "anyOf": [
41
+ {
42
+ "type": "string"
43
+ },
44
+ {
45
+ "type": "object",
46
+ "additionalProperties": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ {
51
+ "type": "object",
52
+ "additionalProperties": {
53
+ "type": "object"
54
+ }
55
+ }
56
+ ]
57
+ },
58
+ "model_used": {
59
+ "title": "Model Used",
60
+ "type": "string"
61
+ },
62
+ "time": {
63
+ "title": "Time",
64
+ "type": "string"
65
+ }
66
+ }
67
+ }
68
+ }
69
+ ]
70
+ }
toolbench/toolenv/tools/Text_Analysis/treediff.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_9cb68b2a-09c6-4a16-a9d6-0566365d7c6c",
3
+ "tool_description": "Human-readable text comparisons, 2 and 3-way diff, merge and more.",
4
+ "home_url": "https://rapidapi.com/treediff-treediff-default/api/treediff/",
5
+ "name": "Treediff",
6
+ "title": "Treediff",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Treediff",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 832,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 9,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "treediff.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "merge",
20
+ "url": "https://treediff.p.rapidapi.com/merge",
21
+ "description": "Request the 3-way merge between a `head`, a `compare` and a `base` value.\nThe `base` value serves as the \"common ancestor\".",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/merge\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/merge\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {}
30
+ },
31
+ {
32
+ "name": "diff",
33
+ "url": "https://treediff.p.rapidapi.com/diff",
34
+ "description": "Request diffs between a `head` and a `compare` and optional `base` value.\nAdding a `base` param triggers the 3-way diff with `base` as the \"common ancestor\".",
35
+ "method": "POST",
36
+ "required_parameters": [],
37
+ "optional_parameters": [],
38
+ "code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/diff\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
39
+ "convert_code": "import requests\n\nurl = \"https://treediff.p.rapidapi.com/diff\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"treediff.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
40
+ "test_endpoint": "",
41
+ "statuscode": 200,
42
+ "schema": {}
43
+ }
44
+ ]
45
+ }
toolbench/toolenv/tools/Text_Analysis/turbo_nlp.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_bffbac58-cddb-47d9-9fb3-fc038d585e1c",
3
+ "tool_description": "Your Swiss army knife for NLP! Text summarization, sentiment check, text readability analysis, named entity extraction, segmentation, tokenization, SEO slug creation and much more.",
4
+ "home_url": "https://rapidapi.com/sharpcode/api/turbo-nlp/",
5
+ "name": "Turbo NLP",
6
+ "title": "Turbo NLP",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Turbo NLP",
9
+ "score": null,
10
+ "host": "turbo-nlp.p.rapidapi.com",
11
+ "api_list": [
12
+ {
13
+ "name": "Check Sentiment",
14
+ "url": "https://turbo-nlp.p.rapidapi.com/CheckSentiment",
15
+ "description": "This endpoint checks sentiment of the provided text",
16
+ "method": "POST",
17
+ "required_parameters": [],
18
+ "optional_parameters": [],
19
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CheckSentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
20
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CheckSentiment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
21
+ "test_endpoint": ""
22
+ },
23
+ {
24
+ "name": "NER",
25
+ "url": "https://turbo-nlp.p.rapidapi.com/NER",
26
+ "description": "Accurate named-entity recognition",
27
+ "method": "POST",
28
+ "required_parameters": [],
29
+ "optional_parameters": [],
30
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/NER\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
31
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/NER\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
32
+ "test_endpoint": ""
33
+ },
34
+ {
35
+ "name": "Segment",
36
+ "url": "https://turbo-nlp.p.rapidapi.com/Segment",
37
+ "description": "Segment a text into senteces. Extremely accurate!",
38
+ "method": "POST",
39
+ "required_parameters": [],
40
+ "optional_parameters": [],
41
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Segment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
42
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Segment\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
43
+ "test_endpoint": ""
44
+ },
45
+ {
46
+ "name": "Tokenize",
47
+ "url": "https://turbo-nlp.p.rapidapi.com/Tokenize",
48
+ "description": "Tokenizes text including the non-word character spans.",
49
+ "method": "POST",
50
+ "required_parameters": [],
51
+ "optional_parameters": [],
52
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Tokenize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
53
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/Tokenize\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
54
+ "test_endpoint": ""
55
+ },
56
+ {
57
+ "name": "Detect Language",
58
+ "url": "https://turbo-nlp.p.rapidapi.com/DetectLanguage",
59
+ "description": "This endpoint tries to detect language of a text",
60
+ "method": "POST",
61
+ "required_parameters": [],
62
+ "optional_parameters": [],
63
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/DetectLanguage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
64
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/DetectLanguage\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
65
+ "test_endpoint": "",
66
+ "statuscode": 200,
67
+ "schema": {
68
+ "type": "object",
69
+ "properties": {
70
+ "get": {
71
+ "type": "string"
72
+ },
73
+ "parameters": {
74
+ "type": "array"
75
+ },
76
+ "errors": {
77
+ "type": "array"
78
+ },
79
+ "results": {
80
+ "type": "integer"
81
+ },
82
+ "response": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "object"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ },
91
+ {
92
+ "name": "Create Slug",
93
+ "url": "https://turbo-nlp.p.rapidapi.com/CreateSlug",
94
+ "description": "Create a SEO-friendly slug from a headline",
95
+ "method": "POST",
96
+ "required_parameters": [],
97
+ "optional_parameters": [],
98
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CreateSlug\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
99
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/CreateSlug\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
100
+ "test_endpoint": ""
101
+ },
102
+ {
103
+ "name": "Test Readability",
104
+ "url": "https://turbo-nlp.p.rapidapi.com/TestReadability",
105
+ "description": "This endpoints take a text and returns readbility scores.",
106
+ "method": "POST",
107
+ "required_parameters": [],
108
+ "optional_parameters": [],
109
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/TestReadability\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
110
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/TestReadability\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
111
+ "test_endpoint": ""
112
+ },
113
+ {
114
+ "name": "Summarize Text",
115
+ "url": "https://turbo-nlp.p.rapidapi.com/SummarizeText",
116
+ "description": "This endpoint takes a long text and creates a summary.",
117
+ "method": "POST",
118
+ "required_parameters": [],
119
+ "optional_parameters": [],
120
+ "code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/SummarizeText\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
121
+ "convert_code": "import requests\n\nurl = \"https://turbo-nlp.p.rapidapi.com/SummarizeText\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"turbo-nlp.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
122
+ "test_endpoint": ""
123
+ }
124
+ ]
125
+ }
toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle.json ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "55389e16e4b082eab6ddd7f3",
3
+ "tool_description": "One API for all your text analysis needs. Sentiment Analysis, Topic Tagging, Lemmatizer, and much more. Various NLP tools all with one plan. Use natural language processing to analyze and understand human sentences.",
4
+ "home_url": "https://rapidapi.com/twinword/api/twinword-text-analysis-bundle/",
5
+ "name": "Twinword Text Analysis Bundle",
6
+ "title": "Twinword Text Analysis Bundle",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Twinword Text Analysis Bundle",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 240,
12
+ "avgSuccessRate": 100,
13
+ "popularityScore": 9.8,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "twinword-twinword-bundle-v1.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Recommend (post)",
20
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/",
21
+ "description": "Recommend highly related categories for e-commerce and other uses.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": "",
28
+ "statuscode": 200,
29
+ "schema": {
30
+ "properties": {
31
+ "author": {
32
+ "type": "string"
33
+ },
34
+ "categories": {
35
+ "items": {
36
+ "type": "string"
37
+ },
38
+ "type": "array"
39
+ },
40
+ "categories_scored": {
41
+ "properties": {
42
+ "Coffee": {
43
+ "type": "integer"
44
+ },
45
+ "Coffee Decanter Warmers": {
46
+ "type": "integer"
47
+ },
48
+ "Coffee Decanters": {
49
+ "type": "integer"
50
+ },
51
+ "Coffee Filter Baskets": {
52
+ "type": "integer"
53
+ },
54
+ "Coffee Filters": {
55
+ "type": "integer"
56
+ },
57
+ "Coffee Maker & Espresso Machine Accessories": {
58
+ "type": "integer"
59
+ },
60
+ "Coffee Maker Water Filters": {
61
+ "type": "integer"
62
+ },
63
+ "Coffee Pods": {
64
+ "type": "integer"
65
+ },
66
+ "Frothing Pitchers": {
67
+ "type": "integer"
68
+ },
69
+ "Stovetop Espresso Pot Parts": {
70
+ "type": "integer"
71
+ }
72
+ },
73
+ "type": "object"
74
+ },
75
+ "email": {
76
+ "format": "email",
77
+ "type": "string"
78
+ },
79
+ "keywords": {
80
+ "items": {
81
+ "type": "string"
82
+ },
83
+ "type": "array"
84
+ },
85
+ "keywords_scored": {
86
+ "properties": {
87
+ "coffee": {
88
+ "type": "integer"
89
+ },
90
+ "maker": {
91
+ "type": "integer"
92
+ }
93
+ },
94
+ "type": "object"
95
+ },
96
+ "result_code": {
97
+ "format": "color",
98
+ "type": "string"
99
+ },
100
+ "result_msg": {
101
+ "type": "string"
102
+ },
103
+ "taxonomy_set": {
104
+ "type": "string"
105
+ },
106
+ "version": {
107
+ "type": "string"
108
+ }
109
+ },
110
+ "type": "object"
111
+ }
112
+ },
113
+ {
114
+ "name": "Extract (post)",
115
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/",
116
+ "description": "Return the root of a word or roots of a string of words.",
117
+ "method": "POST",
118
+ "required_parameters": [
119
+ {
120
+ "name": "text",
121
+ "type": "STRING",
122
+ "description": "Enter some text to extract roots (maximum 200 words or 3,000 characters)",
123
+ "default": "The frogs hopped from rock to rock."
124
+ }
125
+ ],
126
+ "optional_parameters": [
127
+ {
128
+ "name": "flag",
129
+ "type": "STRING",
130
+ "description": "Pass an optional flag to change output. If \"VALID_TOKENS_ONLY\" is passed, an array list is returned with only valid lemmas in the order found in the string passed in the text parameter. If \"VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE\" is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first. If \"VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE_SHOW_COUNT\" (default) is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first, but with the lemma in the key and the count in the value. If \"ALL_TOKENS\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is. If \"ALL_TOKENS_INVALID_LOWERCASED\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, but lowercased. If \"ALL_TOKENS_INVALID_EMPTY_STRING\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as empty-string items in the array. If \"ALL_TOKENS_INVALID_NEGATIVE_ONE\" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as -1. If \"ALL_TOKENS_ORDER_BY_OCCURRENCE\" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first. If \"ALL_TOKENS_ORDER_BY_OCCURRENCE_SHOW_COUNT\" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first, but with the words and lemmas in the key and the count in the value.",
131
+ "default": ""
132
+ },
133
+ {
134
+ "name": "exclude_non_content_words",
135
+ "type": "BOOLEAN",
136
+ "description": "Optional boolean to exclude non content words (ie. \"the\", \"is\", \"take\")",
137
+ "default": false
138
+ }
139
+ ],
140
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/\"\nquerystring = {\"text\": \"The frogs hopped from rock to rock.\", \"flag\": \"\", \"exclude_non_content_words\": false}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
141
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/\"\nquerystring = {\"text\": \"The frogs hopped from rock to rock.\", \"flag\": \"\", \"exclude_non_content_words\": false}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
142
+ "test_endpoint": "",
143
+ "statuscode": 200,
144
+ "schema": {}
145
+ },
146
+ {
147
+ "name": "Classify (post)",
148
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/",
149
+ "description": "Classify text into product categories or contact us to customize and use your own category sets. Enter some text to find its related product categories:",
150
+ "method": "POST",
151
+ "required_parameters": [
152
+ {
153
+ "name": "text",
154
+ "type": "STRING",
155
+ "description": "",
156
+ "default": "Protect your back with these ergonomic office chairs. These adjustable chairs are cushioned and molded to ensure comfort over long hours. Some options feature breathable backs that let air flow through to keep you cool and add to your comfort level on hot days."
157
+ }
158
+ ],
159
+ "optional_parameters": [
160
+ {
161
+ "name": "title",
162
+ "type": "STRING",
163
+ "description": "Enter title of text (optional).",
164
+ "default": ""
165
+ }
166
+ ],
167
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/\"\nquerystring = {\"title\": \"\", \"text\": \"Protect your back with these ergonomic office chairs. These adjustable chairs are cushioned and molded to ensure comfort over long hours. Some options feature breathable backs that let air flow through to keep you cool and add to your comfort level on hot days.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
168
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/\"\nquerystring = {\"title\": \"\", \"text\": \"Protect your back with these ergonomic office chairs. These adjustable chairs are cushioned and molded to ensure comfort over long hours. Some options feature breathable backs that let air flow through to keep you cool and add to your comfort level on hot days.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
169
+ "test_endpoint": "",
170
+ "statuscode": 200,
171
+ "schema": {}
172
+ },
173
+ {
174
+ "name": "Analyze (post)",
175
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/",
176
+ "description": "Return sentiment analysis results with score for the given text.",
177
+ "method": "POST",
178
+ "required_parameters": [
179
+ {
180
+ "name": "text",
181
+ "type": "STRING",
182
+ "description": "Enter some text to analyze (maximum 100 words or 1,500 characters)",
183
+ "default": "great value in its price range!"
184
+ }
185
+ ],
186
+ "optional_parameters": [],
187
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/\"\nquerystring = {\"text\": \"great value in its price range!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
188
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/\"\nquerystring = {\"text\": \"great value in its price range!\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
189
+ "test_endpoint": "",
190
+ "statuscode": 200,
191
+ "schema": {}
192
+ },
193
+ {
194
+ "name": "Generate (post)",
195
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/",
196
+ "description": "Detect and generate human like topics to the given text.",
197
+ "method": "POST",
198
+ "required_parameters": [
199
+ {
200
+ "name": "text",
201
+ "type": "STRING",
202
+ "description": "Enter some text to generate topics (maximum 200 words or 3,000 characters)",
203
+ "default": "Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures that underlie the acquisition, representation, processing, storage, communication of, and access to information."
204
+ }
205
+ ],
206
+ "optional_parameters": [],
207
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures that underlie the acquisition, representation, processing, storage, communication of, and access to information.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
208
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/\"\nquerystring = {\"text\": \"Computer science is the scientific and practical approach to computation and its applications. It is the systematic study of the feasibility, structure, expression, and mechanization of the methodical procedures that underlie the acquisition, representation, processing, storage, communication of, and access to information.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
209
+ "test_endpoint": "",
210
+ "statuscode": 200,
211
+ "schema": {}
212
+ },
213
+ {
214
+ "name": "Text (post)",
215
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/",
216
+ "description": "Evaluate the difficulty level of a word, sentence, or paragraph.",
217
+ "method": "POST",
218
+ "required_parameters": [
219
+ {
220
+ "name": "text",
221
+ "type": "STRING",
222
+ "description": "Input a some text to evaluate its difficulty level (maximum 200 words or 3,000 characters)",
223
+ "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus."
224
+ }
225
+ ],
226
+ "optional_parameters": [],
227
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/\"\nquerystring = {\"text\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
228
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/\"\nquerystring = {\"text\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
229
+ "test_endpoint": "",
230
+ "statuscode": 200,
231
+ "schema": {}
232
+ },
233
+ {
234
+ "name": "Text Similarity (post)",
235
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/",
236
+ "description": "Evaluate the similarity of two words, sentences, or paragraphs.",
237
+ "method": "POST",
238
+ "required_parameters": [
239
+ {
240
+ "name": "text2",
241
+ "type": "STRING",
242
+ "description": "Input a second text to compare its similarity with the first text.",
243
+ "default": "An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus."
244
+ },
245
+ {
246
+ "name": "text1",
247
+ "type": "STRING",
248
+ "description": "Enter the first text to compare.",
249
+ "default": "The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus."
250
+ }
251
+ ],
252
+ "optional_parameters": [],
253
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/\"\nquerystring = {\"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
254
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/\"\nquerystring = {\"text2\": \"An important part of the brains of humans and other vertebrates is the hippocampus. It's part of the limbic system and moves information from short-term to long-term memory. It also helps us move around. Humans and other mammals have two hippocampi, one on each side. The hippocampus is a part of the cerebral cortex; and in primates it is found in the medial temporal lobe, beneathe the cortical surface. It has two main interlocking parts: Ammon's horn and the dentate gyrus.\", \"text1\": \"The hippocampus is a major component of the brains of humans and other vertebrates. It belongs to the limbic system and plays important roles in the consolidation of information from short-term memory to long-term memory and spatial navigation. Humans and other mammals have two hippocampi, one in each side of the brain. The hippocampus is a part of the cerebral cortex; and in primates it is located in the medial temporal lobe, underneath the cortical surface. It contains two main interlocking parts: Ammon's horn and the dentate gyrus.\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
255
+ "test_endpoint": "",
256
+ "statuscode": 200,
257
+ "schema": {}
258
+ },
259
+ {
260
+ "name": "Word (post)",
261
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/",
262
+ "description": "Evaluate the difficulty level of a word.",
263
+ "method": "POST",
264
+ "required_parameters": [
265
+ {
266
+ "name": "entry",
267
+ "type": "STRING",
268
+ "description": "Input a word to evaluate its difficulty level",
269
+ "default": "sound"
270
+ }
271
+ ],
272
+ "optional_parameters": [],
273
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
274
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
275
+ "test_endpoint": "",
276
+ "statuscode": 200,
277
+ "schema": {}
278
+ },
279
+ {
280
+ "name": "Word Associations (post)",
281
+ "url": "https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/",
282
+ "description": "Get word associations with semantic distance score.",
283
+ "method": "POST",
284
+ "required_parameters": [
285
+ {
286
+ "name": "entry",
287
+ "type": "STRING",
288
+ "description": "A word, phrase, or paragraph.",
289
+ "default": "sound"
290
+ }
291
+ ],
292
+ "optional_parameters": [],
293
+ "code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
294
+ "convert_code": "import requests\n\nurl = \"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/\"\nquerystring = {\"entry\": \"sound\"}\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"twinword-twinword-bundle-v1.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers, params=querystring)\nprint(response.json())\n",
295
+ "test_endpoint": "",
296
+ "statuscode": 200,
297
+ "schema": {}
298
+ }
299
+ ]
300
+ }
toolbench/toolenv/tools/Text_Analysis/twinword_text_analysis_bundle/api.py ADDED
@@ -0,0 +1,417 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+ from datetime import date, datetime, timedelta
4
+ import os
5
+
6
+ from typing import Optional, Dict, Union, List
7
+
8
+
9
+ def analyze_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
10
+ """
11
+ "Return sentiment analysis results with score for the given text."
12
+ text: Enter some text to analyze (maximum 100 words or 1,500 characters)
13
+
14
+ """
15
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/sentiment_analyze/"
16
+ querystring = {'text': text, }
17
+
18
+ headers = {
19
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
20
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
21
+ }
22
+
23
+
24
+ response = requests.get(url, headers=headers, params=querystring)
25
+ try:
26
+ observation = response.json()
27
+ except:
28
+ observation = response.text
29
+ return observation
30
+
31
+ def association(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
32
+ """
33
+ "Get the associations of a word."
34
+ entry: Type a word to get its associations
35
+
36
+ """
37
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_association/"
38
+ querystring = {'entry': entry, }
39
+
40
+ headers = {
41
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
42
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
43
+ }
44
+
45
+
46
+ response = requests.get(url, headers=headers, params=querystring)
47
+ try:
48
+ observation = response.json()
49
+ except:
50
+ observation = response.text
51
+ return observation
52
+
53
+ def classify_get(text: str, title: str=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
54
+ """
55
+ "Classify text into product categories or contact us to customize and use your own category sets. Enter some text to find its related product categories:"
56
+ text: Enter some text to find related categories.
57
+ title: Enter title of text (optional).
58
+
59
+ """
60
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_classify/"
61
+ querystring = {'text': text, }
62
+ if title:
63
+ querystring['title'] = title
64
+
65
+ headers = {
66
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
67
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
68
+ }
69
+
70
+
71
+ response = requests.get(url, headers=headers, params=querystring)
72
+ try:
73
+ observation = response.json()
74
+ except:
75
+ observation = response.text
76
+ return observation
77
+
78
+ def definition(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
79
+ """
80
+ "Get the definitions of a word."
81
+ entry: Type a word to get its definitions
82
+
83
+ """
84
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_definition/"
85
+ querystring = {'entry': entry, }
86
+
87
+ headers = {
88
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
89
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
90
+ }
91
+
92
+
93
+ response = requests.get(url, headers=headers, params=querystring)
94
+ try:
95
+ observation = response.json()
96
+ except:
97
+ observation = response.text
98
+ return observation
99
+
100
+ def definition_kr(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
101
+ """
102
+ "Get the Korean definitions of a word."
103
+ entry: Type a word to get its Korean definitions
104
+
105
+ """
106
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_definition_kr/"
107
+ querystring = {'entry': entry, }
108
+
109
+ headers = {
110
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
111
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
112
+ }
113
+
114
+
115
+ response = requests.get(url, headers=headers, params=querystring)
116
+ try:
117
+ observation = response.json()
118
+ except:
119
+ observation = response.text
120
+ return observation
121
+
122
+ def difficulty(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
123
+ """
124
+ "Get the difficulty level of a word."
125
+ entry: Type a word to get its difficulty level
126
+
127
+ """
128
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_difficulty/"
129
+ querystring = {'entry': entry, }
130
+
131
+ headers = {
132
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
133
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
134
+ }
135
+
136
+
137
+ response = requests.get(url, headers=headers, params=querystring)
138
+ try:
139
+ observation = response.json()
140
+ except:
141
+ observation = response.text
142
+ return observation
143
+
144
+ def exam_history(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
145
+ """
146
+ "See which exams a word has been on"
147
+ entry: Type a word to see which exams it has been on
148
+
149
+ """
150
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_examhistory/"
151
+ querystring = {'entry': entry, }
152
+
153
+ headers = {
154
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
155
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
156
+ }
157
+
158
+
159
+ response = requests.get(url, headers=headers, params=querystring)
160
+ try:
161
+ observation = response.json()
162
+ except:
163
+ observation = response.text
164
+ return observation
165
+
166
+ def example(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
167
+ """
168
+ "See examples of a word used in a sentence"
169
+ entry: Type a word to see examples of it used in a sentence
170
+
171
+ """
172
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_example/"
173
+ querystring = {'entry': entry, }
174
+
175
+ headers = {
176
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
177
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
178
+ }
179
+
180
+
181
+ response = requests.get(url, headers=headers, params=querystring)
182
+ try:
183
+ observation = response.json()
184
+ except:
185
+ observation = response.text
186
+ return observation
187
+
188
+ def extract_get(text: str, flag: str=None, exclude_non_content_words: bool=None, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
189
+ """
190
+ "Return the root of a word or roots of a string of words."
191
+ text: Enter some text to extract roots (maximum 200 words or 3,000 characters)
192
+ flag: Pass an optional flag to change output. If "VALID_TOKENS_ONLY" is passed, an array list is returned with only valid lemmas in the order found in the string passed in the text parameter. If "VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE" is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first. If "VALID_TOKENS_ONLY_ORDER_BY_OCCURRENCE_SHOW_COUNT" (default) is passed, an array list is returned with only valid lemmas in the order of occurrence with the most occurring lemma first, but with the lemma in the key and the count in the value. If "ALL_TOKENS" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is. If "ALL_TOKENS_INVALID_LOWERCASED" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, but lowercased. If "ALL_TOKENS_INVALID_EMPTY_STRING" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as empty-string items in the array. If "ALL_TOKENS_INVALID_NEGATIVE_ONE" is passed, an array list is returned with all the words in the string passed in the text parameter with words that could be lemmatized as lemmas and words that could not be lemmatized as -1. If "ALL_TOKENS_ORDER_BY_OCCURRENCE" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first. If "ALL_TOKENS_ORDER_BY_OCCURRENCE_SHOW_COUNT" is passed, an array list is returned with all the words in the string passed in the text parameter, with words that could be lemmatized as lemmas and words that could not be lemmatized left as is, all in the order of occurrence with the most occurring first, but with the words and lemmas in the key and the count in the value.
193
+ exclude_non_content_words: Optional boolean to exclude non content words (ie. "the", "is", "take")
194
+
195
+ """
196
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/lemma_extract/"
197
+ querystring = {'text': text, }
198
+ if flag:
199
+ querystring['flag'] = flag
200
+ if exclude_non_content_words:
201
+ querystring['exclude_non_content_words'] = exclude_non_content_words
202
+
203
+ headers = {
204
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
205
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
206
+ }
207
+
208
+
209
+ response = requests.get(url, headers=headers, params=querystring)
210
+ try:
211
+ observation = response.json()
212
+ except:
213
+ observation = response.text
214
+ return observation
215
+
216
+ def generate_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
217
+ """
218
+ "Detect and generate human like topics to the given text."
219
+ text: Enter some text to generate topics (maximum 200 words or 3,000 characters)
220
+
221
+ """
222
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/topic_generate/"
223
+ querystring = {'text': text, }
224
+
225
+ headers = {
226
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
227
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
228
+ }
229
+
230
+
231
+ response = requests.get(url, headers=headers, params=querystring)
232
+ try:
233
+ observation = response.json()
234
+ except:
235
+ observation = response.text
236
+ return observation
237
+
238
+ def recommend_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
239
+ """
240
+ "Recommend highly related categories for e-commerce and other uses."
241
+ text: Enter some text to find related categories:
242
+
243
+ """
244
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/category_recommend/"
245
+ querystring = {'text': text, }
246
+
247
+ headers = {
248
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
249
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
250
+ }
251
+
252
+
253
+ response = requests.get(url, headers=headers, params=querystring)
254
+ try:
255
+ observation = response.json()
256
+ except:
257
+ observation = response.text
258
+ return observation
259
+
260
+ def reference(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
261
+ """
262
+ "Get the broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms of a word."
263
+ entry: Type a word to get its broad terms, narrow terms, related terms, evocations, synonyms, associations, and derived terms
264
+
265
+ """
266
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_reference/"
267
+ querystring = {'entry': entry, }
268
+
269
+ headers = {
270
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
271
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
272
+ }
273
+
274
+
275
+ response = requests.get(url, headers=headers, params=querystring)
276
+ try:
277
+ observation = response.json()
278
+ except:
279
+ observation = response.text
280
+ return observation
281
+
282
+ def text_get(text: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
283
+ """
284
+ "Evaluate the difficulty level of a word, sentence, or paragraph."
285
+ text: Input a some text to evaluate its difficulty level (maximum 200 words or 3,000 characters)
286
+
287
+ """
288
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_text/"
289
+ querystring = {'text': text, }
290
+
291
+ headers = {
292
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
293
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
294
+ }
295
+
296
+
297
+ response = requests.get(url, headers=headers, params=querystring)
298
+ try:
299
+ observation = response.json()
300
+ except:
301
+ observation = response.text
302
+ return observation
303
+
304
+ def text_similarity_get(text1: str, text2: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
305
+ """
306
+ "Evaluate the similarity of two words, sentences, or paragraphs."
307
+ text1: Input the first text to compare.
308
+ text2: Input a second text to compare its similarity with the first text.
309
+
310
+ """
311
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/text_similarity/"
312
+ querystring = {'text1': text1, 'text2': text2, }
313
+
314
+ headers = {
315
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
316
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
317
+ }
318
+
319
+
320
+ response = requests.get(url, headers=headers, params=querystring)
321
+ try:
322
+ observation = response.json()
323
+ except:
324
+ observation = response.text
325
+ return observation
326
+
327
+ def theme(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
328
+ """
329
+ "Get the themes of a word."
330
+ entry: Type a word to get its themes
331
+
332
+ """
333
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_theme/"
334
+ querystring = {'entry': entry, }
335
+
336
+ headers = {
337
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
338
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
339
+ }
340
+
341
+
342
+ response = requests.get(url, headers=headers, params=querystring)
343
+ try:
344
+ observation = response.json()
345
+ except:
346
+ observation = response.text
347
+ return observation
348
+
349
+ def type_1(level: int, area: str='sat', toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
350
+ """
351
+ "Customized word association quiz for game and e-learning software."
352
+ level: Select the difficulty level of the test (1 - 10)
353
+ area: Select a test to generate quiz questions and answers (es, ms, hs, ksat, toeic, toefl, teps, sat, ielts, gre, gmat, overall)
354
+
355
+ """
356
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/quiz_type1/"
357
+ querystring = {'level': level, }
358
+ if area:
359
+ querystring['area'] = area
360
+
361
+ headers = {
362
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
363
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
364
+ }
365
+
366
+
367
+ response = requests.get(url, headers=headers, params=querystring)
368
+ try:
369
+ observation = response.json()
370
+ except:
371
+ observation = response.text
372
+ return observation
373
+
374
+ def word_get(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
375
+ """
376
+ "Evaluate the difficulty level of a word."
377
+ entry: Input a word to evaluate its difficulty level
378
+
379
+ """
380
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/score_word/"
381
+ querystring = {'entry': entry, }
382
+
383
+ headers = {
384
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
385
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
386
+ }
387
+
388
+
389
+ response = requests.get(url, headers=headers, params=querystring)
390
+ try:
391
+ observation = response.json()
392
+ except:
393
+ observation = response.text
394
+ return observation
395
+
396
+ def word_associations_get(entry: str, toolbench_rapidapi_key: str='088440d910mshef857391f2fc461p17ae9ejsnaebc918926ff'):
397
+ """
398
+ "Get word associations with semantic distance score."
399
+ entry: A word, phrase, or paragraph.
400
+
401
+ """
402
+ url = f"https://twinword-twinword-bundle-v1.p.rapidapi.com/word_associations/"
403
+ querystring = {'entry': entry, }
404
+
405
+ headers = {
406
+ "X-RapidAPI-Key": toolbench_rapidapi_key,
407
+ "X-RapidAPI-Host": "twinword-twinword-bundle-v1.p.rapidapi.com"
408
+ }
409
+
410
+
411
+ response = requests.get(url, headers=headers, params=querystring)
412
+ try:
413
+ observation = response.json()
414
+ except:
415
+ observation = response.text
416
+ return observation
417
+
toolbench/toolenv/tools/Text_Analysis/udyog_aadhaar_ocr.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "product_id": "api_fdf4f324-657f-40eb-a4fc-4109290dc717",
3
+ "tool_description": "Extraction of details from image of an Udyog Aadhaar Certificate in real-time.",
4
+ "home_url": "https://rapidapi.com/idfy-idfy-default/api/udyog-aadhaar-ocr/",
5
+ "name": "Udyog Aadhaar OCR",
6
+ "title": "Udyog Aadhaar OCR",
7
+ "pricing": "FREEMIUM",
8
+ "tool_name": "Udyog Aadhaar OCR",
9
+ "score": {
10
+ "avgServiceLevel": 100,
11
+ "avgLatency": 1505,
12
+ "avgSuccessRate": 57,
13
+ "popularityScore": 8.7,
14
+ "__typename": "Score"
15
+ },
16
+ "host": "udyog-aadhaar-ocr.p.rapidapi.com",
17
+ "api_list": [
18
+ {
19
+ "name": "Udyog Aadhaar OCR",
20
+ "url": "https://udyog-aadhaar-ocr.p.rapidapi.com/v3/tasks/sync/extract/ind_udyog_aadhaar",
21
+ "description": "Extraction of details from image of an Udyog Aadhaar Certificate in real-time.",
22
+ "method": "POST",
23
+ "required_parameters": [],
24
+ "optional_parameters": [],
25
+ "code": "import requests\n\nurl = \"https://udyog-aadhaar-ocr.p.rapidapi.com/v3/tasks/sync/extract/ind_udyog_aadhaar\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"udyog-aadhaar-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
26
+ "convert_code": "import requests\n\nurl = \"https://udyog-aadhaar-ocr.p.rapidapi.com/v3/tasks/sync/extract/ind_udyog_aadhaar\"\n\nheaders = {\n \"X-RapidAPI-Key\": \"SIGN-UP-FOR-KEY\",\n \"X-RapidAPI-Host\": \"udyog-aadhaar-ocr.p.rapidapi.com\"\n }\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n",
27
+ "test_endpoint": ""
28
+ }
29
+ ]
30
+ }