⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 similarity.h

📁 简单处理两个句子中的相似度对比问题,具体用法很简单,在main函数中写入句子即可
💻 H
字号:
#include <io.h>
#include "string.h"
#include <iostream>
#include <fstream>
#include <string>
#include <stdio.h>
#include <vector>
#include <map>

using namespace std;

#include "ssps.h"

typedef struct SWORD {
  int    wnum;	
  double    weight;
} SWORD;

double sprod_ns(double *, double *,int);
int loadbiaodian(string Filename);
int loadStopword(string Filename);
double Compute_sim(string text1,string text2);
int find(vector<string> OArray,string word);
int find(vector<SWORD> textarray,int pos);
int caltf(string text);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -