Skip to content

Instantly share code, notes, and snippets.

View janprill's full-sized avatar

Jan Prill janprill

  • RA Jan Prill
  • Hamburg
View GitHub Profile

Keybase proof

I hereby claim:

  • I am janprill on github.
  • I am janprill (https://keybase.io/janprill) on keybase.
  • I have a public key ASBQG_XpAMIiDeZOZx0B4doWtN5Z3fDsa33t8cUuG30RuAo

To claim this, I am signing this object:

# Export wordlists of differently tagged word types from brown corpus
# using the natural language toolkit.
import io
import nltk
brown_tagged = nltk.corpus.brown.tagged_words(tagset='universal')
word_tag_fd = nltk.FreqDist(brown_tagged)
types = ['NOUN', 'VERB', 'DET', 'ADJ', 'ADP', 'CONJ', 'ADV', 'PRT']
# == Paperclip without ActiveRecord
#
# Simple and lightweight object that can use Paperclip
#
#
# Customized part can be extracted in another class which
# would inherit from SimplePaperclip.
#
# class MyClass < SimplePaperclip
# attr_accessor :image_file_name # :<atached_file_name>_file_name