Giter Club home page Giter Club logo

moodfeeler's Introduction

MoodFeeler


  • test_model.h5将放置在model目录下

示例

>>> import MoodFeeler as mf
>>> mf.predict(['你这么努力,忍受那么多寂寞和纠结,我们也没觉得你有多优秀。', '微笑拥抱每一天,做像向日葵般温暖的女子'])
array([[0.30009958, 0.6999004 ],
       [0.8481712 , 0.15182886]], dtype=float32)

  • 要求向predict中传入一个list,list由str组成,返回一个ndarray,每行中的第一个实数为对应句子positive的概率,第二个实数为negative的概率。

moodfeeler's People

Contributors

johnhuiwb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

agrimonia lvzhetx

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.