start new:
tmux
start new with session name:
tmux new -s myname
# -*- coding: utf-8 -*- | |
"""Example Google style docstrings. | |
This module demonstrates documentation as specified by the `Google Python | |
Style Guide`_. Docstrings may extend over multiple lines. Sections are created | |
with a section header and a colon followed by a block of indented text. | |
Example: | |
Examples can be given using either the ``Example`` or ``Examples`` | |
sections. Sections support any reStructuredText formatting, including |
import pprint | |
from nltk.corpus import stopwords | |
from nltk.corpus import webtext | |
from nltk.collocations import BigramCollocationFinder | |
from nltk.metrics import BigramAssocMeasures | |
stopset = set(stopwords.words('english')) | |
filter_stops = lambda w: len(w) < 3 or w in stopset | |
words = [w.lower() for w in webtext.words('grail.txt')] |