CEE Dr. Brett A. Story
CSE Dr. Jennifer L. Dworak Dr. Daniel W. Engels Dr. David W. Matula
EE Dr. Jerome K. Butler
CEE Dr. Brett A. Story
CSE Dr. Jennifer L. Dworak Dr. Daniel W. Engels Dr. David W. Matula
EE Dr. Jerome K. Butler
#!/usr/bin/env python | |
""" | |
Retrieve and list the files in the reading list. | |
""" | |
import plistlib | |
from shutil import copy | |
import subprocess | |
import os | |
from tempfile import gettempdir |
# Function lookfor | |
# searches current directory for given text. | |
# Highlights result on each line where it appears. | |
# Usage: lookfor someword | |
function lookfor() { | |
grep --color -nriwI "$@" . | |
} |
#! /usr/bin/env python3 | |
""" | |
Convert MIT Press XML files for TACL to Anthology XML. | |
""" | |
import logging | |
import xml.etree.ElementTree as etree | |
from pathlib import Path | |
from typing import List, Optional, Tuple |
from dataclasses import astuple, dataclass | |
from typing import Callable, List, NewType, Set, Tuple | |
import numpy as np | |
np.random.seed(1337) | |
# Dummy typings; feel free to switch to PyTorch. | |
Word = str | |
Phrase = NewType('Phrase', Tuple[Word]) | |
Score = float # or th.float, etc. |
from typing import Dict, Iterator, List, Set | |
# Type aliases...if Python 3.10+, then declare them as such. ;-) | |
Cycle = List[int] | |
CycleDecomposition = List[Cycle] | |
Permutation = Dict[int, int] | |
# Another reasonable (and more compact) structure is an array, | |
# but this helps keep the one-indexing and lets you sub in other graph types. | |
#! /usr/bin/env python3 | |
from __future__ import print_function | |
import argparse | |
from collections import OrderedDict | |
from datetime import datetime | |
from getpass import getuser | |
import os | |
import re | |
import readline |