This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
/** | |
* Tính cosine similarity two vector using UJMP lib | |
* | |
* @param m1 | |
* @param m2 | |
* @return | |
*/ | |
public static double getCosineSimilartiy(double[] m1, double[] m2) { | |
double aiSum = 0; | |
double a2Sum = 0; |
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
struct NODE | |
{ | |
int data; | |
NODE *pNext, *pPred; | |
}; typedef struct NODE NODE; |
public static string VietnameseSigns(string str) | |
{ | |
str = str.Trim(); | |
var charsToRemove = new string[] { "@", ",", ".", ";", "'", "/", "\\", "\"", "[", "]","#","+" }; | |
foreach (var c in charsToRemove) | |
{ | |
str = str.Replace(c, string.Empty); | |
} | |
const string FindText = "áàảãạâấầẩẫậăắằẳẵặđéèẻẽẹêếềểễệíìỉĩịóòỏõọôốồổỗộơớờởỡợúùủũụưứừửữựýỳỷỹỵÁÀẢÃẠÂẤẦẨẪẬĂẮẰẲẴẶĐÉÈẺẼẸÊẾỀỂỄỆÍÌỈĨỊÓÒỎÕỌÔỐỒỔỖỘƠỚỜỞỠỢÚÙỦŨỤƯỨỪỬỮỰÝỲỶỸỴ "; | |
const string ReplText = "aaaaaaaaaaaaaaaaadeeeeeeeeeeeiiiiiooooooooooooooooouuuuuuuuuuuyyyyyAAAAAAAAAAAAAAAAADEEEEEEEEEEEIIIIIOOOOOOOOOOOOOOOOOUUUUUUUUUUUYYYYY-"; |