Code Monkey home page Code Monkey logo

time-nlp-php's Introduction

Time-NLP-PHP

Time-NLP的PHP版本 中文时间表达词转换

简介

Time-NLP 的 PHP 版本

Time-NLP 的 python3 版本 https://github.com/zhanzecheng/Time_NLP

Time-NLP 的 Java 版本 https://github.com/shinyke/Time-NLP

使用

composer require crazywhalecc/time-nlp:dev-master

功能说明

本项目不依赖其他第三方库,运行环境推荐PHP7-cli以上。

php test.php
php test.php --debug
# debug模式会sleep等待显示解析过程

输入示例:

>>> 明天上午
<<< {"type":"timestamp","timestamp":"2019-08-14 10:00:00"}

>>> 明天上午11点叫我起床
<<< {"type":"timestamp","timestamp":"2019-08-14 11:00:00"}

......更多示例可参考Python和Java版

time-nlp-php's People

Contributors

crazywhalecc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

time-nlp-php's Issues

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.