similarity.h

来自「简单处理两个句子中的相似度对比问题,具体用法很简单,在main函数中写入句子即可」· C头文件 代码 · 共 25 行

H
25 行
字号
#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 + =
减小字号Ctrl + -
显示快捷键?