Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect AI-model? #7

Open
ash-hun opened this issue Jun 6, 2022 · 0 comments
Open

How to connect AI-model? #7

ash-hun opened this issue Jun 6, 2022 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@ash-hun
Copy link
Owner

ash-hun commented Jun 6, 2022

Let's check \server\model\modulingTest.py.

Hey, @Dongbok-Lee
If you want to use my ai-model code in your backend parts, you show modulingTest.pyfiles or this issue.

First, importing essential library

from silence_tensorflow import silence_tensorflow
silence_tensorflow()
from korcen import korcen
import prediction as ssukzip

Second, use below code in your main function

review = input("Your Review : ")
korcen = korcen.korcen()
score = ssukzip.classifyReview("ssukzip_Model.h5", review, korcen)
print(score)

And then, I explain the classifyReview function in prediction.py

  • args : modelName:h5files, review:text, korcenModule:korcen-object
  • input value : someone's review(text type)
  • output value : judgment result
    (absence of bad word, review score, review state:positive/negative)

Happy Hacking :)

@ash-hun ash-hun added the help wanted Extra attention is needed label Jun 6, 2022
@ash-hun ash-hun pinned this issue Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants