[Valentine special project] I made a LINE compatibility diagnosis!

It's Valentine

I think there are many men who are fidgeting as February 14 approaches. This time, I made a system to diagnose compatibility with the person you care about using LINE's talk history!

Details are introduced in the following video https://youtu.be/LNFFCBIHOXY

How do you make it?

Easy to make

  1. Save personal LINE talk history
  2. Data shaping
  3. Score calculation with a unique algorithm

Save personal LINE talk history

Follow the steps below to save the talk history

line相性診断作ってみた_画像.004.jpeg

Data shaping

We will format the data of the talk history in text format Defines three data formats: message, turn, and conversation

line相性診断作ってみた_画像.006.jpeg

The data structure is such that a one-line message is a message, a set of messages is a turn, and a set of turns of yourself and the other party is a conversation.

line相性診断作ってみた_画像.007.jpeg

Score calculation with a unique algorithm

The LINE compatibility diagnosis system has four evaluation axes

line相性診断作ってみた_画像.009.jpeg

Conversation length

The length of the conversation is calculated for each conversation with a perfect score of 10 days.

line相性診断作ってみた_画像.011.jpeg

Reply interval

The reply interval is calculated so that it will be 0 points after 6 hours or more.

line相性診断作ってみた_画像.013.jpeg

Quality of content

As for the quality of the content, this time I made it easy to score when including question sentences or emoji In the future, I would like to add processing such as adding points when words close to "like" are included in word2vec and doc2vec.

line相性診断作ってみた_画像.015.jpeg

duration of call

In the evaluation of call time, all calls are averaged with a perfect score of 1 hour or more.

line相性診断作ってみた_画像.017.jpeg

result

The result is as follows

result.jpg

I made it fairly rigorously, so if you have 60 points, you can do it well, straw

Summary

This time, I made a system to quantify the compatibility with the other party with a simple algorithm! I'm worried about the data only, but it seems good to publish it on heroku etc. and have it used.

Recommended Posts

[Valentine special project] I made a LINE compatibility diagnosis!
I made a stamp substitute bot with line
I made a LINE Bot with Serverless Framework!
〇✕ I made a game
[AWS] I made a reminder BOT with LINE WORKS
I made a household account book bot with LINE Bot
I made a LINE BOT with Python and Heroku
I made a python text
I made a discord bot
I made a LINE BOT that returns parrots with Go
I made a face diagnosis AI for a female professional golfer ③
I made a Chatbot using LINE Messaging API and Python
[AWS] I made a reminder BOT with LINE WORKS (implementation)
I made a C ++ learning site
[Python] I made a Line bot that randomly asks English words.
I made a Line-bot using Python!
I made a CUI-based translation script (2)
I made a wikipedia gacha bot
I made a CUI-based translation script
I made a LINE stamp where you can study Linux commands
I made a daemon with Python
I made a Chatbot using LINE Messaging API and Python (2) ~ Server ~
I made a program to notify you by LINE when switches arrive
I made a new AWS S3 bucket
I made a dash docset for Holoviews
I made a payroll program in Python!
I touched "Orator" so I made a note
I made a character counter with Python
I tried drawing a line using turtle
Beginner: I made a launcher using dictionary
I made a conversation partner like Siri
I made a script to display emoji
I made a Hex map with Python
I made a life game with Numpy
I made a stamp generator with GAN
I made a browser automatic stamping tool.
After studying Python3, I made a Slackbot
I made a roguelike game with Python
I made a simple blackjack with Python
I made a configuration file with Python
I made a library for actuarial science
I made a WEB application with Django
I made a neuron simulator with Python
I made a LINE BOT that returns a terrorist image using the Flickr API
I made a Line Bot that uses Python to retrieve unread Gmail emails!
[Python] I made a LINE Bot that detects faces and performs mosaic processing.
[For beginners] I made a motion sensor with Raspberry Pi and notified LINE!
In Python, I made a LINE Bot that sends pollen information from location information.
I made a competitive programming glossary with Python
I made a weather forecast bot-like with Python.
I made a spare2 cheaper algorithm for uWSGI
I made a useful tool for Digital Ocean
I made a GUI application with Python + PyQt5
I made a Twitter fujoshi blocker with Python ①
I made a crazy thing called typed tuple
[Python] I made a Youtube Downloader with Tkinter.
I made a router config collection tool Config Collecor
I made a downloader for word distributed expression
I made a tool to compile Hy natively
I made a tool to get new articles
I made a random number graph with Numpy