Skip to content

LL08-MathematicalModelling-dowell/100114-Message-Analysis

Repository files navigation

DoWell Message Analysis Project From DoWell UX Living Lab

Welcome to the DoWell Message Analysis Project! The Message Analysis Project is a tool that allows users to extract text from images or from any paragraph and analyze it to identify nouns, verbs, and adjectives. It also provides an API for text analysis, making it easy to integrate into other applications.

Features

  • Extract text from images using Optical Character Recognition (OCR).
  • Analyze extracted text to identify nouns, verbs, and adjectives.
  • User-friendly web interface for image uploads and analysis.
  • User-friendly web interface for paragraph writing and analysis.
  • API endpoint for text analysis.

Getting Started

To get started with this project, you have two options:

  1. Web Interface:

    • Visit our web application here to upload an image or write/paste paragraph and analyze the text.
  2. API Usage:

    • To use the API, you need an API key. Please contact us at https://100093.pythonanywhere.com/ to obtain your API key.
    • Make a POST request to with your API key and the text you want to analyze.
    • You will receive a JSON response with information about the nouns, verbs, and adjectives in the text.

Steps to use DoWell Message Analysis Web App

Extract Parts of Speech from an Image

Step 1:

To analyze your text, please begin by logging into Message Analysis page. You can access the login page by clicking on the following link: Message Analysis Login
Once you have successfully logged in, you will see this page.

Home

Step 2:

By clicking the button of "Extract Parts of Speech from an Image" you'll see this page. Image_Upload

Step 3:

By uploading "image" you need to press the submit button and after that you will view the result page. Result

Extract Parts of Speech from a Paragraph

Step 1:

By clicking the button of "Extract Parts of Speech from a Paragraph" you'll see this page. Image_Upload

Step 2:

By writing or pasting paragraph you need to press the submit button and after that you will view the result page. Result

Use Message Analysis using APIs

Click here to read the documentation in postman Documentation

API Detailed Documentation

=============================================================================

Fetch Data Using the API

Method: POST

This API enables you to retrieve data.

Request Data / API Payload

{
    "api-key": "your-dowell-api-key",
    "data_sentence": "your-data"
}

Parameters

  • api-key (required): Your Dowell API key.
  • data_sentence: Your given text or sentences.

Example of Fetching Data in Python

import requests
import json

url = "https://livinglab100114.pythonanywhere.com/API/noun_&_verb/v1/API"

data = {
    "api-key": "your-dowell-api-key",
    "data_sentence": "your-data"

}

response = requests.post(url, json=data)
print(response.text)

Response:

  • For success: "success": true, "message": "We successfully analyzed the data", "data": { "sentence": "your-data", "nouns": [ "data" ], "adjectives": [], "verbs": [] }
  • For error: "success": false, "message": "API key not found", "data": []

Response Codes

  • For success: HTTP 200 OK with a JSON response containing a success message.
  • For errors: HTTP status codes such as 404 Not Found or 400 Bad Request with an error message.

Note: Ensure you replace placeholders such as "your-dowell-api-key" and other specific details with actual values in your requests.

Thank you for choosing Dowell API. We look forward to helping you with your data operations.Please ensure you have the necessary API key and valid data to perform these operations successfully.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •