Created
June 9, 2010 21:33
-
-
Save ibrahima/432204 to your computer and use it in GitHub Desktop.
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 simply splits up the reuters-21578 dataset into separate files for each article. | |
for f in reut2-*.sgm | |
do | |
echo $f | |
sed '1d' $f | csplit -ks -n 3 -f split/${f%.sgm} - '/<REUTERS/' {100000} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment