Skip to content

Instantly share code, notes, and snippets.

Matt Menzenski menzenski

Block or report user

Report or block menzenski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fts_fuzzy_match.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
MIT License
Copyright (c) 2016 Matt Menzenski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
View keybase.md

Keybase proof

I hereby claim:

  • I am menzenski on github.
  • I am menzenski (https://keybase.io/menzenski) on keybase.
  • I have a public key whose fingerprint is F234 E6EF 8850 46E2 2CF5 A17E D4BB 348E 8D5E 6908

To claim this, I am signing this object:

View syuzhet_mwe.r
### set the working directory---you'll need to redefine this for your local system
setwd("~/Documents/School/Kansas/Coding/2015_02_12_RCorpusLingTools/JockersDataFiles/code")
#library("syuzhet")
library("syuzhet", lib.loc="/Library/Frameworks/R.framework/Versions/3.1/Resources/library")
### define our text file (here, it's in the current working directory)
### downloaded from http://www.gutenberg.org/cache/epub/2600/pg2600.txt
text.v <- scan("WarAndPeaceEnglish.txt", what="character",sep="\n")
@menzenski
menzenski / helloworld.asm
Created Feb 4, 2015
Hello World in Assembly language (x86-64 Unix-like operating systems, NASM syntax)
View helloworld.asm
; MacOS X: /usr/local/bin/nasm -f macho64 *.s && ld -macosx_version_min 10.7 *.o
; Solaris/FreeBSD/DragonFly: nasm -f elf64 -D UNIX *.s && ld *.o
; NetBSD: nasm -f elf64 -D UNIX -D NetBSD *.s && ld *.o
; OpenBSD: nasm -f elf64 -D UNIX -D OpenBSD *.s && ld -static *.o
; OpenIndiana: nasm -f elf64 -D UNIX *.s && ld -m elf_x86_64 *.o
; Linux: nasm -f elf64 *.s && ld *.o
%ifdef NetBSD
section .note.netbsd.ident
dd 7,4,1
@menzenski
menzenski / helloworld.py
Created Feb 4, 2015
Hello World in Python
View helloworld.py
print "Hello World"
@menzenski
menzenski / rncfrequencyfinder.py
Created Oct 21, 2014
This Python script takes a list of words and returns the frequency with which each word occurs in the Russian National Corpus.
View rncfrequencyfinder.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
##########
## rncfrequencyfinder.py Version 1.0 (2014-10-20)
##
## Original author: Matthew Menzenski (menzenski@ku.edu)
##
## License: CC-BY-4.0 ( https://creativecommons.org/licenses/by/4.0/ )
##########
@menzenski
menzenski / RussianStopWords.txt
Created Oct 18, 2013
List of Russian stop words (original source: http://code.google.com/p/stop-words/ ).
View RussianStopWords.txt
а
е
и
ж
м
о
на
не
ни
об
@menzenski
menzenski / DimFinderClass.py
Last active Dec 25, 2015
Define a Python class and methods for locating diminutive nouns in a Russian text.
View DimFinderClass.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import nltk
from nltk.stem import SnowballStemmer
from nltk import FreqDist
import codecs
def print_list(mylist):
'''Print a list containing unicode characters.'''
@menzenski
menzenski / yandexsearcher.py
Created Oct 18, 2013
Automate a search of slovari.yandex.ru
View yandexsearcher.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import nltk
from nltk.stem import SnowballStemmer
from nltk import FreqDist
import codecs
import glob
from diminutivefinder_04_asclass import DiminutiveFinder
import matplotlib.pyplot as plt
@menzenski
menzenski / digitalhumanitiesproject.py
Last active Dec 25, 2015
Find specific diminutive nouns in a Russian text.
View digitalhumanitiesproject.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import nltk
from nltk.stem import SnowballStemmer
from nltk import FreqDist
import codecs
import glob
from diminutivefinder_04_asclass import DiminutiveFinder
You can’t perform that action at this time.