luheng/lsgn

Bug in ./scripts/make_conll2012_data.sh

ghaddarAbs opened this issue · 1 comments

It seem that cat can't handle the large number of *.gold_conll in the train portion. The script print this warning and continue:
./scripts/make_conll2012_data.sh: line 19: /bin/ls: Argument list too long

However, changing:

cat ${ONTONOTES_PATH}/data/train/data/english/annotations/*/*/*/*.gold_conll \

>> ${SRL_PATH}/train.english.v5_gold_conll

to:

for file in ${ONTONOTES_PATH}/data/train/data/english/annotations/*/*/*/*.gold_conll
do
  cat "$file" >> ${SRL_PATH}/train.english.v5_gold_conll
done

solve the problem

@ghaddarAbs Thank u man, your solution helps a lot.