Skip to content

Instantly share code, notes, and snippets.

@evgenybf
evgenybf / spacy_pos_example.py
Created June 5, 2018 18:58
A trivial example of part of speech recognition with spacy module
# pip install spacy
# python -m spacy download en_core_web_sm
import spacy
# Load English tokenizer, tagger, parser, NER and word vectors
nlp = spacy.load('en_core_web_sm')
# Process whole documents
text = ("I saw hem. He is a saw.")
import collections
import csv
import itertools
# http://www.manythings.org/anki/
# Russian - English rus-eng.zip (304513)
INPUT_FILE_1 = "rus.txt"
# Spanish - English spa-eng.zip (118964)
"""
Extracts word transcriptions from En-En_Oxford Advanced Learners Dictionary.dsl
These words have invalid definitions:
shit, to
"""
import re
@evgenybf
evgenybf / picgrabber.go
Created December 7, 2015 11:08
Grab all pictures from a folder on quizlet.com
package main
import (
"bufio"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
"net/url"
make[1]: Entering directory '/c/Develop/Go/projects2/libxlsxwriter/third_party/minizip'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/Develop/Go/projects2/libxlsxwriter/third_party/minizip'
make[1]: Entering directory '/c/Develop/Go/projects2/libxlsxwriter/src'
cp libxlsxwriter.a libxlsxwriter.dll ../lib
make[1]: Leaving directory '/c/Develop/Go/projects2/libxlsxwriter/src'
make[1]: Entering directory '/c/Develop/Go/projects2/libxlsxwriter/test/functional/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/c/Develop/Go/projects2/libxlsxwriter/test/functional/src'
C:/Develop/Python/Python27/Scripts/py.test test/functional -v
// По русски
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, world!")
}
DPI scale: 1
startup, version: 3083 windows x64 channel: stable
executable: /C/Apps/sublime3/sublime_text.exe
working dir: /C/Develop/Go/gopath/src/sql2cvs
packages path: /C/Apps/sublime3/Data/Packages
state path: /C/Apps/sublime3/Data/Local
zip path: /C/Apps/sublime3/Packages
zip path: /C/Apps/sublime3/Data/Installed Packages
ignored_packages: ["Vintage"]
Unable to parse binding {button: button1, command: gotools_goto_def, count: 1, modifiers: [ctrl]}