https://github.com/caomeiyouren/chi-time-nlp-ts
中文语句中的时间语义识别。即通过分析中文语句,识别出话语中提到的时间
https://github.com/caomeiyouren/chi-time-nlp-ts
Last synced: 6 months ago
JSON representation
中文语句中的时间语义识别。即通过分析中文语句,识别出话语中提到的时间
- Host: GitHub
- URL: https://github.com/caomeiyouren/chi-time-nlp-ts
- Owner: CaoMeiYouRen
- License: mit
- Created: 2021-06-11T13:30:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T20:55:05.000Z (6 months ago)
- Last Synced: 2025-04-10T07:03:38.294Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.29 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
chi-time-nlp-ts
> 中文语句中的时间语义识别。即通过分析中文语句,识别出话语中提到的时间。
>
> 本项目在 ChiTimeNLP 的基础上采用 TypeScript 重构,添加了类型。并修复了原有的关于“十”的时间解析错误的问题。参考 [Time-NLP](https://github.com/shinyke/Time-NLP)、[ChiTimeNLP](https://github.com/JohnnieFucker/ChiTimeNLP)
## 🏠 主页
[https://github.com/CaoMeiYouRen/chi-time-nlp-ts#readme](https://github.com/CaoMeiYouRen/chi-time-nlp-ts#readme)
## 📦 依赖要求
- node >=16
## 🚀 安装
```sh
npm install chi-time-nlp-ts
```## 👨💻 使用
```typescript
import NLP from 'chi-time-nlp-ts'const n = new NLP()
n.parse('十一点五十九分五十九秒') // 2024-06-02 23:59:59
```## 🛠️ 开发
```sh
npm run dev
```## 🔧 编译
```sh
npm run build
```## 🔍 Lint
```sh
npm run lint
```## 💾 Commit
```sh
npm run commit
```## 👤 作者
**CaoMeiYouRen**
* Website: [https://blog.cmyr.ltd/](https://blog.cmyr.ltd/)
* GitHub: [@CaoMeiYouRen](https://github.com/CaoMeiYouRen)
## 🤝 贡献
欢迎 贡献、提问或提出新功能!
如有问题请查看 [issues page](https://github.com/CaoMeiYouRen/chi-time-nlp-ts/issues).
贡献或提出新功能可以查看[contributing guide](https://github.com/CaoMeiYouRen/chi-time-nlp-ts/blob/master/CONTRIBUTING.md).## 💰 支持
如果觉得这个项目有用的话请给一颗⭐️,非常感谢
## 📝 License
Copyright © 2024 [CaoMeiYouRen](https://github.com/CaoMeiYouRen).
This project is [MIT](https://github.com/CaoMeiYouRen/chi-time-nlp-ts/blob/master/LICENSE) licensed.***
_This README was generated with ❤️ by [chi-time-nlp-ts](https://github.com/CaoMeiYouRen/chi-time-nlp-ts)_