install packages
sudo apt-get install librrds-perl libcgi-pm-perl
sudo edit the file located at which ragraph
Make these changes near the top of the file:
...
# Used modules
\documentclass[10pt,landscape]{article} | |
\usepackage{multicol} | |
\usepackage{enumitem} | |
\usepackage{calc} | |
\usepackage{ifthen} | |
\usepackage{listings} | |
\usepackage[landscape]{geometry} | |
\usepackage{hyperref} | |
\usepackage{graphicx} | |
\usepackage{booktabs} |
install packages
sudo apt-get install librrds-perl libcgi-pm-perl
sudo edit the file located at which ragraph
Make these changes near the top of the file:
...
# Used modules
import sys | |
import re | |
import random | |
regex = re.compile(r"[\w'’]+ ?|Mr\.|[\".!?]+", re.IGNORECASE & re.UNICODE) | |
punc = re.compile(r"[.!?]+", re.UNICODE) | |
def process_word(last, word, chain, totals): | |
if last not in chain: | |
chain[last] = {} |