Skip to content

Instantly share code, notes, and snippets.

View noisychannel's full-sized avatar

Gaurav Kumar noisychannel

View GitHub Profile
@noisychannel
noisychannel / qwatch
Created April 23, 2015 22:01
Monitor qsub jobs
#!/bin/bash
username="gkumar"
while true
do
clear
printf '%99s\n' | tr ' ' -
echo "My Jobs"
@noisychannel
noisychannel / interleave.py
Created April 23, 2015 22:00
Interleave output
#!/usr/bin/env python
import sys
import codecs
sentenceId = 0
def readFiles(files, labels):
global sentenceId
sentenceId = sentenceId + 1
@noisychannel
noisychannel / moses-built-ttable.sh
Created April 23, 2015 21:58
MOSES : Build phrase table
#!/usr/bin/env bash
# Change these variables
ROOT_DIR=/export/a04/gkumar/experiments/scale-2015/1
EXTERNAL_BIN_DIR=/export/a04/gkumar/code/mosesdecoder/tools
F_EXT=pa
E_EXT=en
MAX_PHRASE_LENGTH=10
CORPUS=/export/a04/gkumar/experiments/scale-2015/data/trans