Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
/ simhash Public archive

simhash for php extension : 判断文本相似度

Notifications You must be signed in to change notification settings

php-lsys/simhash

Repository files navigation

文本相似度比较(simhash算法)

PHP扩展方式实现,支持 php>=7.0

php-src 为PHP方式实现 默认用php方式,编译扩展后使用扩展

使用示例 test.php

linux or mac 下编译

cd simhash
phpize && ./configure
make && make install

windows 下编译

php 8.1 windows dll

load build env

打开 [x64|x86] Native Tools Command Prompt for VS 2017 编译命令行
加载PHP编译变量 \your-php-sdk-binary-tools-dir\bin\phpsdk_setvars.bat 
cd your_php_src # PHP 源码目录 下载 simhash 源码到 ext/simhash 下
buildconf.bat
configure --disable-all --enable-cli --enable-simhash=shared 
nmake

About

simhash for php extension : 判断文本相似度

Topics

Resources

Stars

Watchers

Forks