Code Monkey home page Code Monkey logo

albert_4_time_recognition's Introduction

ALBERT_4_Time_Recognition

使用ALBERT预训练模型,用于识别文本中的时间,同时验证模型的预测耗时是否有显著提升。

该项目旨在通过ALBERT+Bi-LSTM+CRF模型来提升模型训练和预测的时间,其中,模型预测耗时为38ms/次。

如何使用该模型?

  1. 下载该项目,同时安装项目所依赖的Python模块: tensorflow, tornado;

  2. 运行run.py,启动模型训练、预测的HTTP服务;

  3. 在浏览器中输入: http://localhost:12306/model_train ,即可开始模型训练;或者直接运行train.py也可。模型训练的时间较长,需耐心等待,生成后的模型文件位于ckpt文件夹。

  4. 模型预测为POST请求,可输入如下命令:

curl -d "event=***" http://localhost:12306/subj_extract

模型预测的例子如下(使用软件为Postman):

关于该项目的文章,可以参考:https://blog.csdn.net/jclian91/article/details/102631837

albert_4_time_recognition's People

Contributors

percent4 avatar

Watchers

James Cloos 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.