# TimeNLP **Repository Path**: bububa/TimeNLP ## Basic Information - **Project Name**: TimeNLP - **Description**: Time-NLP的golang版本 中文时间表达词转换 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-06 - **Last Updated**: 2021-07-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 Time-NLP 中文语句中的时间语义识别的golang版本 python 版本https://github.com/sunfiyes/Time-NLPY python3 版本 https://github.com/zhanzecheng/Time_NLP Java 版本https://github.com/shinyke/Time-NLP PHP 版本https://github.com/crazywhalecc/Time-NLP-PHP ## 使用 go get -u github.com/bububa/TimeNLP ## 功能说明 用于句子中时间词的抽取和转换 ```golang import ( "log" "github.com/bububa/TimeNLP" ) func main() { target := "Hi,all.下周一下午三点开会" preferFuture := true tn := timenlp.TimeNormalizer(preferFuture) ret, err := tn.Parse(target) if err != nil { log.Fatalln(err) } log.Printf("%+v\n", ret) } ```