Skip to content

Instantly share code, notes, and snippets.

@Luvata
Luvata / stopwords.json
Created July 10, 2020 03:09
Vietnamese stopwords
["a_lô", "a_ha", "ai", "ai_ai", "ai_nấy", "ai_đó", "alô", "amen", "anh", "anh_ấy", "ba", "ba_ba",
"ba_bản", "ba_cùng", "ba_họ", "ba_ngày", "ba_ngôi", "ba_tăng", "bao_giờ", "bao_lâu", "bao_nhiêu",
"bao_nả", "bay_biến", "biết", "biết_bao", "biết_bao_nhiêu", "biết_chắc", "biết_chừng_nào",
"biết_mình", "biết_mấy", "biết_thế", "biết_trước", "biết_việc", "biết_đâu", "biết_đâu_chừng",
"biết_đâu_đấy", "biết_được", "buổi", "buổi_làm", "buổi_mới", "buổi_ngày", "buổi_sớm", "bà", "bà_ấy",
"bài", "bài_bác", "bài_bỏ", "bài_cái", "bác", "bán", "bán_cấp", "bán_dạ", "bán_thế", "bây_bẩy",
"bây_chừ", "bây_giờ", "bây_nhiêu", "bèn", "béng", "bên", "bên_bị", "bên_có", "bên_cạnh", "bông",
"bước", "bước_khỏi", "bước_tới", "bước_đi", "bạn", "bản", "bản_bộ", "bản_riêng", "bản_thân", "bản_ý",
"bất_chợt", "bất_cứ", "bất_giác", "bất_kì", "bất_kể", "bất_kỳ", "bất_luận", "bất_ngờ", "bất_như
@Luvata
Luvata / single_maml_hopefully.py
Created May 29, 2020 18:20
single task single variable MAML :D
import torch
from torch.autograd import grad
x_train = torch.tensor(2., requires_grad=True)
y_train = torch.tensor(7., requires_grad=True)
x_test = torch.tensor(0.2, requires_grad=True)
y_test = torch.tensor(3.4, requires_grad=True)
@Luvata
Luvata / CRESI_Inference.ipynb
Last active April 20, 2020 08:06
Cresi inference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Luvata
Luvata / geopandas.ipynb
Created April 16, 2020 11:06
geo pandas hanoi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from load_data import DataGenerator
from tensorflow.python.platform import flags
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
abbr full text count
BCH ban chấp hành 258
BCH bộ chỉ huy 11
BH bảo hiểm 110
BP biên phòng 15
BS bác sĩ 60
BT bê tông 1
BTV biên tập viên 1
BV bệnh viện 334
BX bến xe 9
import os
import sys
import time
import random
import string
import argparse
import torch
import torch.backends.cudnn as cudnn
import torch.nn.init as init
import os
import sys
import re
import six
import math
import lmdb
import torch
from natsort import natsorted
from PIL import Image
@Luvata
Luvata / train_vi.py
Last active December 11, 2019 07:51
import os
import sys
import time
import random
import string
import argparse
import torch
import torch.backends.cudnn as cudnn
import torch.nn.init as init
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSbmn1DKbZpzK3i8ibARnAtAjjs2RWPHrqpeFb1QkCI0Qb+gNYpU/YWvVP712Eitfj0YFXv/LSr5gefXyTZSwYnFf3Laqrg7bbZbY4aCNZfuvIjZxT/Uw9qRGM4064WzcSGo6nISV8//LWD8DK8z1FemCLtyxx+pIYeDzu0mAwVMP/e1limWfInJhByeFpvA2oJlj7LYMgtUoo1mG4NEhUnid6b7XxbLq4mxtTuANyRYMYJjvR8AORKgqCxTZA2b4H6Rw820BACvIJtwwrsNLPdUXzB8k9TrumLH/eKj8En99CyTSnPW0ZX/uE4DzRxmt6kFLIs+DNDpbszEtiKdzV thanhlv@thanhlv-Vostro-3670