Coder Social home page Coder Social logo

emotion-analyst-api's Introduction

Emotion-analyst-api

単語をparamに入れて送ると感情の計測値をjson形式で返送するapiです

Url

https://emotion-analyst-api-image-jjgaumsera-an.a.run.app

利用方法

requestを送るpath

https://emotion-analyst-api-image-jjgaumsera-an.a.run.app/emotion/悲しい

response

{"word":"悲しい","emotions":[{"aware":1},{"shame":0},{"anger":0},{"unpleasant":0},{"fear":0},{"surprise":0},{"love":0},{"excitement":0},{"cheap":0},{"pleasant":0}]}

requestを送るpath

https://emotion-analyst-api-image-jjgaumsera-an.a.run.app/emotions/?word=悲しい&word=楽しい

response

{
  "words":
  [
    {
      "word":"悲しい",
      "emotions":[
        {"aware":1},{"shame":0},{"anger":0},{"unpleasant":0},{"fear":0},{"surprise":0},{"love":0},{"excitement":0},{"cheap":0},{"pleasant":0}
                ]
    },
    {
      "word":"楽しい",
      "emotions":[
        {"aware":0},{"shame":0},{"anger":0},{"unpleasant":0},{"fear":0},{"surprise":0},{"love":0},{"excitement":0},{"cheap":1},{"pleasant":2}
        ]
    }
  ]
}

アプリケーションを作成した背景

私がこのapiを開発した目的は、文章から大まかな感情判定を行うことで運営に支障をきたすユーザーを見つけ出すためです。
現在、インターネットが発達し匿名投稿者による誹謗中傷が相次いでいます。X(twitter)では運営が処理しきれないほど開示請求を行われています。 webアプリ運営は有料化、ユーザー規制などにより誹謗中傷対策を行わなければなりません。非常に時間と手間を取られます。
そこで、このapiが役立ちます。コメント内容をこちらのアプリで分析し、極端に負の感情、怒り(anger)、哀れ(aware)が大きいものを重点的に割り出しておけるのです。
開示請求や、多数のユーザーの要望を受ける前からIP規制等をかける対象者を絞ることができるため、運営はより効率的にwebサイト管理を行えます。
ユーザーではなくIPで管理している自分のアプリPrompterにも導入予定です。

開発環境

  • バックエンド:fastapi python3
  • インフラ Docker
  • サーバー Google Cloud Platform

emotion-analyst-api's People

Contributors

takenoko463 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.