{"id":22377715,"url":"https://github.com/xiaobeicn/text-similarity-php","last_synced_at":"2025-06-28T02:02:45.911Z","repository":{"id":24809439,"uuid":"28223611","full_name":"xiaobeicn/text-similarity-php","owner":"xiaobeicn","description":"Calculate Text Similarity by Cosine Theorem + Segmentation PHP Version","archived":false,"fork":false,"pushed_at":"2018-11-22T01:27:11.000Z","size":2,"stargazers_count":108,"open_issues_count":0,"forks_count":54,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-06T16:12:10.184Z","etag":null,"topics":["php","similarity"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaobeicn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-19T09:43:55.000Z","updated_at":"2025-01-09T03:00:46.000Z","dependencies_parsed_at":"2022-07-24T03:02:12.082Z","dependency_job_id":null,"html_url":"https://github.com/xiaobeicn/text-similarity-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xiaobeicn/text-similarity-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobeicn%2Ftext-similarity-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobeicn%2Ftext-similarity-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobeicn%2Ftext-similarity-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobeicn%2Ftext-similarity-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaobeicn","download_url":"https://codeload.github.com/xiaobeicn/text-similarity-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaobeicn%2Ftext-similarity-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262362041,"owners_count":23299118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["php","similarity"],"created_at":"2024-12-04T22:15:20.771Z","updated_at":"2025-06-28T02:02:45.893Z","avatar_url":"https://github.com/xiaobeicn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 通过余弦定理+分词计算文本相似度PHP版\n\n---\n\n### 参考：\n* http://www.ruanyifeng.com/blog/2013/03/cosine_similarity.html \n* http://my.oschina.net/BreathL/blog/42477\n  \t\n### Use:\n\n```php\n\u003c?php\n\n$obj = new TextSimilarity ($text1, $text2);\necho $obj-\u003erun();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaobeicn%2Ftext-similarity-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaobeicn%2Ftext-similarity-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaobeicn%2Ftext-similarity-php/lists"}