support cos similarity match & bug fix #26
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
支持余弦相似度匹配,test 对比多种 cos 算法,譬如 tf-idf + cos、忽略权重 cos、计数权重 cos、、simhash、minhash 等,对比后效果最好的是 忽略权重 cos,第一个和第二个相似度差距明显。速度上和 chunk 差不多,一会快一点,一会慢一点,批量回放30+条记录 cos 快2-3s。准确性以发单接口为例,101个下流调用,忽略权重 cos 和 chunk 算法的结果一致,其他算法有个位数匹配失败。
readable 切分 fix bug
outboundBypassPorts 支持多个端口
evgarg 统一日志相关初始化到 initLog 函数中
原来 chunk 算法保持不变