diff --git a/New_APIs/TextRazor_API/README.md b/New_APIs/TextRazor_API/README.md new file mode 100644 index 0000000..4c79010 --- /dev/null +++ b/New_APIs/TextRazor_API/README.md @@ -0,0 +1,35 @@ +# 🧠TextRazor API + +## Overview + +The **TextRazor API** provides powerful text analysis capabilities, allowing developers to extract insights and data from text. This API enables users to perform tasks such as entity extraction, sentiment analysis, and language detection, making it a valuable tool for applications that need to understand and process textual data. + +## Features + +- **Entity Extraction**: Identify and extract entities such as people, places, organizations, and more from text. +- **Topic Extraction**: Automatically categorize and label text based on topics and themes. +- **Sentiment Analysis**: Analyze the sentiment expressed in the text, determining whether it is positive, negative, or neutral. +- **Language Detection**: Detect the language of the input text. +- **Customizable**: Tailor the extraction and analysis to specific needs using custom configurations. + +## Getting Started + +### Prerequisites + +- **API Key**: You will need an API key to access the TextRazor API. You can obtain an API key by [signing up](https://www.textrazor.com/) on the TextRazor website. + +### Installation + +To use the TextRazor API in a web application, you can make HTTP requests to the API endpoint directly. Here’s an example of how to set it up in a basic HTML/JavaScript application: + +1. **Obtain Your API Key**: After signing up, you will receive an API key. + +2. **Make API Requests**: Use the API key to authenticate your requests to the TextRazor API endpoint (`https://api.textrazor.com/`). + +3. **Sample Request**: + ```bash + curl -X POST https://api.textrazor.com/ \ + -H 'x-textrazor-key: YOUR_API_KEY' \ + -d 'text=Your sample text here&extractors=entities,topics' +### Contributor +### Amrutha Pariprolu \ No newline at end of file diff --git a/New_APIs/TextRazor_API/index.html b/New_APIs/TextRazor_API/index.html new file mode 100644 index 0000000..efdb1ba --- /dev/null +++ b/New_APIs/TextRazor_API/index.html @@ -0,0 +1,25 @@ + +### `index.html` +```html + + +
+ + +${entity.mention}
+No entities found.
'; + } + }) + .catch(error => { + console.error('Error fetching text analysis results:', error); + }); + } +}); diff --git a/New_APIs/TextRazor_API/manifest.json b/New_APIs/TextRazor_API/manifest.json new file mode 100644 index 0000000..5bf54e1 --- /dev/null +++ b/New_APIs/TextRazor_API/manifest.json @@ -0,0 +1,20 @@ +{ + "name": "TextRazor API App", + "short_name": "TextRazor App", + "start_url": "/", + "display": "standalone", + "background_color": "#ffffff", + "theme_color": "#000000", + "icons": [ + { + "src": "icons/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/New_APIs/TextRazor_API/package-lock.json b/New_APIs/TextRazor_API/package-lock.json new file mode 100644 index 0000000..f0cb566 --- /dev/null +++ b/New_APIs/TextRazor_API/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "textrazor-api-app", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "textrazor-api-app", + "version": "1.0.0", + "license": "MIT" + } + } +} diff --git a/New_APIs/TextRazor_API/package.json b/New_APIs/TextRazor_API/package.json new file mode 100644 index 0000000..fbc8e21 --- /dev/null +++ b/New_APIs/TextRazor_API/package.json @@ -0,0 +1,18 @@ +{ + "name": "textrazor-api-app", + "version": "1.0.0", + "description": "A simple web app that integrates with TextRazor API for text analysis functionality.", + "main": "index.js", + "scripts": { + "start": "echo 'No start script defined'" + }, + "keywords": [ + "text", + "analysis", + "textrazor", + "api", + "web" + ], + "author": "Amrutha", + "license": "MIT" +} diff --git a/New_APIs/TextRazor_API/styles.css b/New_APIs/TextRazor_API/styles.css new file mode 100644 index 0000000..75ffa49 --- /dev/null +++ b/New_APIs/TextRazor_API/styles.css @@ -0,0 +1,64 @@ +body { + font-family: Arial, sans-serif; + background-color: #f5f5f5; + margin: 0; + padding: 0; + display: flex; + flex-direction: column; + align-items: center; +} + +header { + background-color: #000; + color: #fff; + width: 100%; + text-align: center; + padding: 10px; +} + +main { + margin-top: 20px; + width: 80%; + max-width: 800px; +} + +#text-form { + display: flex; + flex-direction: column; + align-items: center; +} + +#text-input { + width: 100%; + height: 150px; + padding: 10px; + margin-bottom: 10px; + border: 1px solid #ccc; + border-radius: 4px; + resize: vertical; +} + +button { + padding: 10px 20px; + border: none; + background-color: #007bff; + color: #fff; + border-radius: 4px; + cursor: pointer; +} + +button:hover { + background-color: #0056b3; +} + +.result-item { + margin-bottom: 20px; +} + +.result-item h2 { + margin: 0; +} + +.result-item p { + margin: 5px 0; +}