Uses of Class
cloud.opencode.base.hash.simhash.SimHashBuilder
Packages that use SimHashBuilder
-
Uses of SimHashBuilder in cloud.opencode.base.hash
Methods in cloud.opencode.base.hash that return SimHashBuilderModifier and TypeMethodDescriptionstatic SimHashBuilderOpenHash.simHash()Creates a SimHash builder 创建SimHash构建器 -
Uses of SimHashBuilder in cloud.opencode.base.hash.simhash
Methods in cloud.opencode.base.hash.simhash that return SimHashBuilderModifier and TypeMethodDescriptionSimHashBuilder.bits(int bits) Sets the fingerprint bit size (32 or 64) 设置指纹位大小(32或64)static SimHashBuilderSimHash.builder()Creates a builder 创建构建器SimHashBuilder.characterTokenizer()Uses character tokenization 使用字符分词SimHashBuilder.hashFunction(HashFunction hashFunction) Sets the hash function for token hashing 设置用于标记哈希的哈希函数SimHashBuilder.lengthWeighted()Uses token length as weight 使用标记长度作为权重SimHashBuilder.nGram(int n) Uses N-gram tokenization 使用N-gram分词Sets a Tokenizer instance 设置Tokenizer实例Sets a custom tokenizer 设置自定义分词器SimHashBuilder.uniformWeight()Uses uniform weight (1 for all tokens) 使用均匀权重(所有标记为1)SimHashBuilder.weightFunction(Function<String, Integer> weightFunction) Sets the token weight function 设置标记权重函数SimHashBuilder.whitespaceTokenizer()Uses whitespace tokenization 使用空格分词SimHashBuilder.wordTokenizer()Uses word tokenization 使用单词分词