This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Holds the stub data (concerning the smcalflow application) to test the system. | |
""" | |
from collections import namedtuple | |
from datetime import timedelta | |
from opendf.defs import get_system_date | |
CURRENT_RECIPIENT_ID = 1007 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function usage { | |
cat <<EOF | |
---------------------------------------------------------------------------------------------------- | |
Usage: | |
----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function usage { | |
cat <<EOF | |
---------------------------------------------------------------------------------------------------- | |
Usage: | |
----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script downloads and compiles the Ontonotes 2012 data in a helpful format | |
# for co-reference resolution. It generates 3 files: {train, dev, test}.english.v4_gold_conll, | |
# as well as a directory 'conll-2012' which contains the raw extracted data. | |
# The script downloads and runs some python scripts which require python 2.X. | |
ONTONOTES_PATH=$1 | |
LANGUAGE=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script downloads and compiles the Ontonotes 2012 data in a helpful format | |
# for co-reference resolution. It generates 3 files: {train, dev, test}.english.v4_gold_conll, | |
# as well as a directory 'conll-2012' which contains the raw extracted data. | |
# The script downloads and runs some python scripts which require python 2.X. | |
ONTONOTES_PATH=$1 | |
if [ ! -n "$ONTONOTES_PATH" ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
def load_conll_to_str(path): | |
""" | |
Load a conll file to a list of strings, each string represents a sentence in conll format | |
:rtype: list | |
""" | |
with open(path) as src: | |
text = src.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
# Filename: OOV.py | |
# Author:hankcs | |
# Date: 2017-11-21 17:51 | |
def load_words(path, dict): | |
with open(path) as src: | |
for line in src: | |
dict.update(line.split()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -DCMAKE_BUILD_TYPE=RELEASE .. | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# AUTHOR: Andy Savage <[email protected]> | |
# GITHUB: www.github.com/hongkongkiwi | |
# DESCRIPTION: This script is for converting ISO files and burning them to a USB drive | |
## | |
HELP="USAGE: iso2usb blah.iso /dev/disk#" |
NewerOlder