{"id":24089445,"url":"https://github.com/longbridge/tinyml","last_synced_at":"2026-06-17T14:33:16.261Z","repository":{"id":57533749,"uuid":"281046955","full_name":"longbridge/tinyml","owner":"longbridge","description":"Longbridge Plain Text format.","archived":false,"fork":false,"pushed_at":"2022-02-23T13:03:18.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-29T01:42:28.675Z","etag":null,"topics":["ast","parser","text-processor","tokenizer"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/longbridge.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-20T07:33:17.000Z","updated_at":"2022-02-23T13:04:02.000Z","dependencies_parsed_at":"2022-09-26T18:21:16.149Z","dependency_job_id":null,"html_url":"https://github.com/longbridge/tinyml","commit_stats":null,"previous_names":["long-bridge/tinyml","longbridge/tinyml"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/longbridge/tinyml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Ftinyml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Ftinyml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Ftinyml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Ftinyml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/longbridge","download_url":"https://codeload.github.com/longbridge/tinyml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Ftinyml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34453431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ast","parser","text-processor","tokenizer"],"created_at":"2025-01-10T04:13:18.670Z","updated_at":"2026-06-17T14:33:16.245Z","avatar_url":"https://github.com/longbridge.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyML\n\nLongBridge Plain Text format.\n\n[![Build Status](https://travis-ci.org/long-bridge/tinyml.svg?branch=master)](https://travis-ci.org/long-bridge/tinyml)\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/longbridgeapp/tinyml\"\n)\n\nfunc main() {\n\tout, _ := tinyml.ToText(\"消息称[st]ST/US/BABA#阿里巴巴.US[/st]将于5月，在港股上市。\")\n\tfmt.Println(out)\n\t// 消息称 阿里巴巴.US 将于 5 月，在港股上市。\n\n\tout, _ = tinyml.ToHTML(\"消息称[st]ST/US/BABA#阿里巴巴.US[/st]将于5月，在港股上市。\\n\\n几家领头羊都处于第一步或者第二步。\")\n\tfmt.Println(out)\n\t// \u003cp\u003e消息称 \u003cspan class=\"security-tag\" value=\"ST/US/BABA#阿里巴巴.US\" data-id=\"ST/US/BABA\"\u003e阿里巴巴.US\u003c/span\u003e 将于 5 月，在港股上市。\u003c/p\u003e\u003cp\u003e几家领头羊都处于第一步或者第二步。\u003c/p\u003e\n}\n```\n\nExample:\n\nhttps://play.golang.org/p/vNGesNpEQzx\n\n## Benchmark\n\nRun `go test -bench=.` to benchmark.\n\n```bash\nBenchmarkToHTML-12    \t   19084\t     62621 ns/op\nBenchmarkToText-12    \t   41409\t     28675 ns/op\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flongbridge%2Ftinyml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flongbridge%2Ftinyml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flongbridge%2Ftinyml/lists"}