From 84e0f04f9c3a156aa9292c6d6dedbbd94b13bd1a Mon Sep 17 00:00:00 2001 From: mjdenkowski Date: Wed, 11 Sep 2013 11:17:24 -0400 Subject: Use bash instead of sh --- corpus/tokenize-anything.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'corpus') diff --git a/corpus/tokenize-anything.sh b/corpus/tokenize-anything.sh index a20a022f..fb038717 100755 --- a/corpus/tokenize-anything.sh +++ b/corpus/tokenize-anything.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash ROOTDIR=`dirname $0` SUPPORT=$ROOTDIR/support -- cgit v1.2.3 From 8a24bb77bc2e9fd17a6f6529a2942cde96a6af49 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 11 Nov 2013 16:12:39 -0500 Subject: error on new macs --- corpus/tokenize-anything.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'corpus') diff --git a/corpus/tokenize-anything.sh b/corpus/tokenize-anything.sh index fb038717..c7adfa61 100755 --- a/corpus/tokenize-anything.sh +++ b/corpus/tokenize-anything.sh @@ -12,8 +12,8 @@ fi $SUPPORT/utf8-normalize.sh $NORMARGS | $SUPPORT/quote-norm.pl | $SUPPORT/tokenizer.pl | - sed -u -e 's/ al - / al-/g' | + sed -e 's/ al - / al-/g' | $SUPPORT/fix-contract.pl | - sed -u -e 's/^ //' | sed -u -e 's/ $//' | + sed -e 's/^ //' | sed -e 's/ $//' | perl -e '$|++; while(<>){s/(\d+)(\.+)$/$1 ./; s/(\d+)(\.+) \|\|\|/$1 . |||/; print;}' -- cgit v1.2.3