# MathFormulaGloveSimilaritySearch **Repository Path**: feiyuok/MathFormulaGloveSimilaritySearch ## Basic Information - **Project Name**: MathFormulaGloveSimilaritySearch - **Description**: MathFormulaGloveSimilaritySearch 数学公式相似性检索 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-14 - **Last Updated**: 2021-03-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 服务器登录 1. 操作系统上面安装一个ssh的软件或者命令行软件, 比如putty: 2. 输入服务器地址:39.107.107.114 3. 用户名:ybyt 3. 输入密码:12345678 4. 回车enter进入服务器 ## 运行步骤一:数据预处理 * 将会把原始原件2.txt,预处理成GloVe模型需要的格式放入GloVe文件夹中命名为text8。 * 所以如果要替换自己的文件就只要替换2.txt文件就好了,但是程序要记得重新进行训练等步骤。 * 并且保存公式到切词序列的字典:MathFormulaGloveSimilaritySearch/dictSentence2KeyWordsStr.pkl。 ```shell cd ~ cd MathFormulaGloveSimilaritySearch ls python3 preprocessOriginalfile.py ``` ## 运行步骤二:进行词向量训练 * 生成的词向量文件在GloVe/vectors.txt 中 * 超参数的设置和查看在文件GloVe/demo.sh中 ```shell cd ~ cd MathFormulaGloveSimilaritySearch ls cd GloVe ls make clean make sh demo.sh ``` ## 运行步骤三:进行公式的向量化计算和用余弦相似度来找到最相似的公式 ```shell cd ~ cd MathFormulaGloveSimilaritySearch cd ComputeSimilarity ls python3 compute_get_embedding.py ```