Skip to content

Instantly share code, notes, and snippets.

@buriy
buriy / navec2spacy_rev2.py
Last active October 26, 2020 18:29 — forked from sskorol/navec2spacy.py
Convert Navec model into Spacy format for further POS/DEP training
import plac
import pymorphy2
import numpy as np
from navec import Navec
from spacy.language import Language
from spacy.vocab import Vocab
from pathlib import Path
from collections import defaultdict
<?
$domain = GetHostByName($REMOTE_ADDR);
if($_POST[submit1])
{
$f="INSERT INTO vote SET id_img='".$_POST['img1']."',rating='".$_POST['num']."',ipname='$domain'";
$row=mysql_query($f);
}
else { echo "<b>click on vote!</b> or go back to <A HREF=http://agh.ge/form/vote/index.php>home page</A>";}