├── .gitignore ├── CITATION.cff ├── LICENSE ├── README.md ├── corpus ├── tianlongbabu.txt └── tianlongbabu_head100.txt ├── data └── dict │ ├── sentiment │ ├── 主张词语(中文).txt │ ├── 主张词语(英文).txt │ ├── 正面情感词语(中文).txt │ ├── 正面情感词语(英文).txt │ ├── 正面评价词语(中文).txt │ ├── 正面评价词语(英文).txt │ ├── 程度级别词语(中文).txt │ ├── 程度级别词语(英文).txt │ ├── 统计结果.txt │ ├── 负面情感词语(中文).txt │ ├── 负面情感词语(英文).txt │ ├── 负面评价词语(中文).txt │ └── 负面评价词语(英文).txt │ ├── tendency │ └── tendency.xml │ ├── test │ ├── Words-240.txt │ └── 说明Instruction.txt │ └── user-concept.xml ├── docs ├── pic │ ├── cos_txt.png │ ├── freq.png │ ├── phrase_sim.png │ ├── sentence_sim.png │ ├── sentence_sim1.png │ ├── tendency.png │ ├── word2v.png │ ├── word2v_ret.png │ └── word_sim.png └── wechat.jpeg ├── pom.xml └── src ├── main ├── java │ └── org │ │ └── xm │ │ ├── Similarity.java │ │ ├── classification │ │ ├── Feature.java │ │ ├── Instance.java │ │ ├── NaiveBayesClassifier.java │ │ └── Variable.java │ │ ├── similarity │ │ ├── ISimilarity.java │ │ ├── phrase │ │ │ └── PhraseSimilarity.java │ │ ├── sentence │ │ │ ├── ISentenceSimilarity.java │ │ │ ├── editdistance │ │ │ │ ├── Block.java │ │ │ │ ├── CharEditUnit.java │ │ │ │ ├── ChunkEditUnit.java │ │ │ │ ├── EditDistance.java │ │ │ │ ├── EditUnit.java │ │ │ │ ├── GregorEditDistanceSimilarity.java │ │ │ │ ├── NewEditDistanceSimilarity.java │ │ │ │ ├── Split.java │ │ │ │ ├── StandardEditDistanceSimilarity.java │ │ │ │ ├── SuperString.java │ │ │ │ └── WordEditUnit.java │ │ │ └── morphology │ │ │ │ ├── MorphoSimilarity.java │ │ │ │ └── SemanticSimilarity.java │ │ ├── text │ │ │ ├── CosineSimilarity.java │ │ │ ├── DiceTextSimilarity.java │ │ │ ├── EditDistanceSimilarity.java │ │ │ ├── EuclideanDistanceTextSimilarity.java │ │ │ ├── ITextSimilarity.java │ │ │ ├── JaccardTextSimilarity.java │ │ │ ├── JaroDistanceTextSimilarity.java │ │ │ ├── JaroWinklerDistanceTextSimilarity.java │ │ │ ├── ManhattanDistanceTextSimilarity.java │ │ │ ├── SimHashPlusHammingDistanceTextSimilarity.java │ │ │ └── TextSimilarity.java │ │ ├── util │ │ │ ├── AtomicFloat.java │ │ │ ├── DicReader.java │ │ │ ├── EditDistance.java │ │ │ ├── FileUtil.java │ │ │ ├── MathUtil.java │ │ │ ├── SimilarityUtil.java │ │ │ ├── StringUtil.java │ │ │ ├── TraverseEvent.java │ │ │ ├── XmlException.java │ │ │ └── XmlUtils.java │ │ └── word │ │ │ ├── CharBasedSimilarity.java │ │ │ ├── IWordSimilarity.java │ │ │ ├── clin │ │ │ ├── CilinCode.java │ │ │ ├── CilinDictionary.java │ │ │ └── CilinSimilarity.java │ │ │ ├── hownet │ │ │ ├── IHownetMeta.java │ │ │ ├── concept │ │ │ │ ├── Concept.java │ │ │ │ ├── ConceptLinkedList.java │ │ │ │ ├── ConceptParser.java │ │ │ │ └── ConceptSimilarity.java │ │ │ └── sememe │ │ │ │ ├── Sememe.java │ │ │ │ ├── SememeParser.java │ │ │ │ ├── SememeSimilarity.java │ │ │ │ └── SememeType.java │ │ │ └── pinyin │ │ │ ├── PinyinDictionary.java │ │ │ └── PinyinSimilarity.java │ │ ├── tendency │ │ └── word │ │ │ ├── HownetWordTendency.java │ │ │ ├── IWordTendency.java │ │ │ └── Training.java │ │ ├── tokenizer │ │ ├── Tokenizer.java │ │ ├── Word.java │ │ └── WordFreqStatistics.java │ │ └── word2vec │ │ ├── Word2vec.java │ │ ├── domain │ │ ├── HiddenNeuron.java │ │ ├── Neuron.java │ │ ├── WordEntry.java │ │ └── WordNeuron.java │ │ └── vec │ │ ├── Huffman.java │ │ ├── Learn.java │ │ ├── ModelParser.java │ │ ├── VecMap.java │ │ └── WordKmeans.java └── resources │ ├── F02-GB2312-to-PuTongHua-PinYin.txt │ ├── cilin.db.gz │ ├── concept.dat │ ├── concept.xml │ ├── concept.xml.gz │ ├── sememe.dat │ ├── sememe.xml │ └── sememe.xml.gz └── test └── java └── org └── xm ├── BaseDemo.java ├── FileSegmentStatisticsDemo.java ├── PhraseSimilarityDemo.java ├── SentenceSimilarityDemo.java ├── TendencyDemo.java ├── WordSimilarityDemo.java ├── similarity ├── dictionary │ ├── CilinDictionaryTest.java │ └── PinyinDictionaryTest.java ├── phrase │ └── PhraseSimilarityTest.java ├── sentence │ ├── editdistance │ │ ├── GregorEditDistanceSimilarityTest.java │ │ ├── NewEditDistanceSimilarityTest.java │ │ └── StandardEditDistanceSimilarityTest.java │ └── morphology │ │ ├── MorphoSimilarityTest.java │ │ └── SemanticSimilarityTest.java ├── text │ ├── CosineSimilarityTest.java │ └── EditDistanceSimilarityTest.java ├── util │ ├── MathUtilTest.java │ └── StringUtilTest.java └── word │ ├── CharBasedSimilarityTest.java │ ├── clin │ └── CilinSimilarityTest.java │ ├── hownet │ └── concept │ │ ├── ConceptSimilarityTest.java │ │ └── ConceptTest.java │ └── pinyin │ └── PinyinSimilarityTest.java ├── tendency └── word │ └── HownetWordTendencyTest.java ├── tokenizer ├── TokenizerTest.java └── WordFreqStatisticsTest.java └── word2vec ├── Word2vecTest.java └── vec ├── LearnTest.java └── ModelParserTest.java /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/.gitignore -------------------------------------------------------------------------------- /CITATION.cff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/CITATION.cff -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/README.md -------------------------------------------------------------------------------- /corpus/tianlongbabu.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/corpus/tianlongbabu.txt -------------------------------------------------------------------------------- /corpus/tianlongbabu_head100.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/corpus/tianlongbabu_head100.txt -------------------------------------------------------------------------------- /data/dict/sentiment/主张词语(中文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/主张词语(中文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/主张词语(英文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/主张词语(英文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/正面情感词语(中文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/正面情感词语(中文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/正面情感词语(英文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/正面情感词语(英文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/正面评价词语(中文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/正面评价词语(中文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/正面评价词语(英文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/正面评价词语(英文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/程度级别词语(中文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/程度级别词语(中文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/程度级别词语(英文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/程度级别词语(英文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/统计结果.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/统计结果.txt -------------------------------------------------------------------------------- /data/dict/sentiment/负面情感词语(中文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/负面情感词语(中文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/负面情感词语(英文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/负面情感词语(英文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/负面评价词语(中文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/负面评价词语(中文).txt -------------------------------------------------------------------------------- /data/dict/sentiment/负面评价词语(英文).txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/sentiment/负面评价词语(英文).txt -------------------------------------------------------------------------------- /data/dict/tendency/tendency.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/tendency/tendency.xml -------------------------------------------------------------------------------- /data/dict/test/Words-240.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/test/Words-240.txt -------------------------------------------------------------------------------- /data/dict/test/说明Instruction.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/test/说明Instruction.txt -------------------------------------------------------------------------------- /data/dict/user-concept.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/data/dict/user-concept.xml -------------------------------------------------------------------------------- /docs/pic/cos_txt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/cos_txt.png -------------------------------------------------------------------------------- /docs/pic/freq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/freq.png -------------------------------------------------------------------------------- /docs/pic/phrase_sim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/phrase_sim.png -------------------------------------------------------------------------------- /docs/pic/sentence_sim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/sentence_sim.png -------------------------------------------------------------------------------- /docs/pic/sentence_sim1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/sentence_sim1.png -------------------------------------------------------------------------------- /docs/pic/tendency.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/tendency.png -------------------------------------------------------------------------------- /docs/pic/word2v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/word2v.png -------------------------------------------------------------------------------- /docs/pic/word2v_ret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/word2v_ret.png -------------------------------------------------------------------------------- /docs/pic/word_sim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/pic/word_sim.png -------------------------------------------------------------------------------- /docs/wechat.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/docs/wechat.jpeg -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/org/xm/Similarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/Similarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/classification/Feature.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/classification/Feature.java -------------------------------------------------------------------------------- /src/main/java/org/xm/classification/Instance.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/classification/Instance.java -------------------------------------------------------------------------------- /src/main/java/org/xm/classification/NaiveBayesClassifier.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/classification/NaiveBayesClassifier.java -------------------------------------------------------------------------------- /src/main/java/org/xm/classification/Variable.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/classification/Variable.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/ISimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/ISimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/phrase/PhraseSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/phrase/PhraseSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/ISentenceSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/ISentenceSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/Block.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/Block.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/CharEditUnit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/CharEditUnit.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/ChunkEditUnit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/ChunkEditUnit.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/EditDistance.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/EditDistance.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/EditUnit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/EditUnit.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/GregorEditDistanceSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/GregorEditDistanceSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/NewEditDistanceSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/NewEditDistanceSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/Split.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/Split.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/StandardEditDistanceSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/StandardEditDistanceSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/SuperString.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/SuperString.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/editdistance/WordEditUnit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/editdistance/WordEditUnit.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/morphology/MorphoSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/morphology/MorphoSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/sentence/morphology/SemanticSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/sentence/morphology/SemanticSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/CosineSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/CosineSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/DiceTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/DiceTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/EditDistanceSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/EditDistanceSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/EuclideanDistanceTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/EuclideanDistanceTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/ITextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/ITextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/JaccardTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/JaccardTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/JaroDistanceTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/JaroDistanceTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/JaroWinklerDistanceTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/JaroWinklerDistanceTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/ManhattanDistanceTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/ManhattanDistanceTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/SimHashPlusHammingDistanceTextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/SimHashPlusHammingDistanceTextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/text/TextSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/text/TextSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/AtomicFloat.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/AtomicFloat.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/DicReader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/DicReader.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/EditDistance.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/EditDistance.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/FileUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/FileUtil.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/MathUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/MathUtil.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/SimilarityUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/SimilarityUtil.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/StringUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/StringUtil.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/TraverseEvent.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/TraverseEvent.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/XmlException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/XmlException.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/util/XmlUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/util/XmlUtils.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/CharBasedSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/CharBasedSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/IWordSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/IWordSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/clin/CilinCode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/clin/CilinCode.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/clin/CilinDictionary.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/clin/CilinDictionary.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/clin/CilinSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/clin/CilinSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/IHownetMeta.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/IHownetMeta.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/concept/Concept.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/concept/Concept.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/concept/ConceptLinkedList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/concept/ConceptLinkedList.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/concept/ConceptParser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/concept/ConceptParser.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/concept/ConceptSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/concept/ConceptSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/sememe/Sememe.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/sememe/Sememe.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/sememe/SememeParser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/sememe/SememeParser.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/sememe/SememeSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/sememe/SememeSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/hownet/sememe/SememeType.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/hownet/sememe/SememeType.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/pinyin/PinyinDictionary.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/pinyin/PinyinDictionary.java -------------------------------------------------------------------------------- /src/main/java/org/xm/similarity/word/pinyin/PinyinSimilarity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/similarity/word/pinyin/PinyinSimilarity.java -------------------------------------------------------------------------------- /src/main/java/org/xm/tendency/word/HownetWordTendency.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/tendency/word/HownetWordTendency.java -------------------------------------------------------------------------------- /src/main/java/org/xm/tendency/word/IWordTendency.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/tendency/word/IWordTendency.java -------------------------------------------------------------------------------- /src/main/java/org/xm/tendency/word/Training.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/tendency/word/Training.java -------------------------------------------------------------------------------- /src/main/java/org/xm/tokenizer/Tokenizer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/tokenizer/Tokenizer.java -------------------------------------------------------------------------------- /src/main/java/org/xm/tokenizer/Word.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/tokenizer/Word.java -------------------------------------------------------------------------------- /src/main/java/org/xm/tokenizer/WordFreqStatistics.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/tokenizer/WordFreqStatistics.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/Word2vec.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/Word2vec.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/domain/HiddenNeuron.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/domain/HiddenNeuron.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/domain/Neuron.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/domain/Neuron.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/domain/WordEntry.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/domain/WordEntry.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/domain/WordNeuron.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/domain/WordNeuron.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/vec/Huffman.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/vec/Huffman.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/vec/Learn.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/vec/Learn.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/vec/ModelParser.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/vec/ModelParser.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/vec/VecMap.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/vec/VecMap.java -------------------------------------------------------------------------------- /src/main/java/org/xm/word2vec/vec/WordKmeans.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/java/org/xm/word2vec/vec/WordKmeans.java -------------------------------------------------------------------------------- /src/main/resources/F02-GB2312-to-PuTongHua-PinYin.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/F02-GB2312-to-PuTongHua-PinYin.txt -------------------------------------------------------------------------------- /src/main/resources/cilin.db.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/cilin.db.gz -------------------------------------------------------------------------------- /src/main/resources/concept.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/concept.dat -------------------------------------------------------------------------------- /src/main/resources/concept.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/concept.xml -------------------------------------------------------------------------------- /src/main/resources/concept.xml.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/concept.xml.gz -------------------------------------------------------------------------------- /src/main/resources/sememe.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/sememe.dat -------------------------------------------------------------------------------- /src/main/resources/sememe.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/sememe.xml -------------------------------------------------------------------------------- /src/main/resources/sememe.xml.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/main/resources/sememe.xml.gz -------------------------------------------------------------------------------- /src/test/java/org/xm/BaseDemo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/BaseDemo.java -------------------------------------------------------------------------------- /src/test/java/org/xm/FileSegmentStatisticsDemo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/FileSegmentStatisticsDemo.java -------------------------------------------------------------------------------- /src/test/java/org/xm/PhraseSimilarityDemo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/PhraseSimilarityDemo.java -------------------------------------------------------------------------------- /src/test/java/org/xm/SentenceSimilarityDemo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/SentenceSimilarityDemo.java -------------------------------------------------------------------------------- /src/test/java/org/xm/TendencyDemo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/TendencyDemo.java -------------------------------------------------------------------------------- /src/test/java/org/xm/WordSimilarityDemo.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/WordSimilarityDemo.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/dictionary/CilinDictionaryTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/dictionary/CilinDictionaryTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/dictionary/PinyinDictionaryTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/dictionary/PinyinDictionaryTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/phrase/PhraseSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/phrase/PhraseSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/sentence/editdistance/GregorEditDistanceSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/sentence/editdistance/GregorEditDistanceSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/sentence/editdistance/NewEditDistanceSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/sentence/editdistance/NewEditDistanceSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/sentence/editdistance/StandardEditDistanceSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/sentence/editdistance/StandardEditDistanceSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/sentence/morphology/MorphoSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/sentence/morphology/MorphoSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/sentence/morphology/SemanticSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/sentence/morphology/SemanticSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/text/CosineSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/text/CosineSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/text/EditDistanceSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/text/EditDistanceSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/util/MathUtilTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/util/MathUtilTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/util/StringUtilTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/util/StringUtilTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/word/CharBasedSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/word/CharBasedSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/word/clin/CilinSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/word/clin/CilinSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/word/hownet/concept/ConceptSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/word/hownet/concept/ConceptSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/word/hownet/concept/ConceptTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/word/hownet/concept/ConceptTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/similarity/word/pinyin/PinyinSimilarityTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/similarity/word/pinyin/PinyinSimilarityTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/tendency/word/HownetWordTendencyTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/tendency/word/HownetWordTendencyTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/tokenizer/TokenizerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/tokenizer/TokenizerTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/tokenizer/WordFreqStatisticsTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/tokenizer/WordFreqStatisticsTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/word2vec/Word2vecTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/word2vec/Word2vecTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/word2vec/vec/LearnTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/word2vec/vec/LearnTest.java -------------------------------------------------------------------------------- /src/test/java/org/xm/word2vec/vec/ModelParserTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/similarity/HEAD/src/test/java/org/xm/word2vec/vec/ModelParserTest.java --------------------------------------------------------------------------------