Skip to content

Instantly share code, notes, and snippets.

View zhanglaplace's full-sized avatar
🎯
Focusing

zhangfeng13 zhanglaplace

🎯
Focusing
  • Baidu
  • BeiJing
View GitHub Profile
@luistung
luistung / tokenization.cpp
Created October 11, 2019 12:02
c++ version of bert tokenize
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
#include <boost/algorithm/string.hpp>
#include <utf8proc.h>
//https://unicode.org/reports/tr15/#Norm_Forms
//https://ssl.icu-project.org/apiref/icu4c/uchar_8h.html
@zhanglaplace
zhanglaplace / plot_ROC.cpp
Last active September 29, 2017 04:04
ROC
#ifndef _UTILS_H__
#define _UTILS_H__
#include <iostream>
#include <map>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <fstream>
typedef std::map<float, int> MAP;