
import sys
import depio

sentnum = int(sys.argv[2])
fnames = [sys.argv[1]]
for fname in fnames:
	sents = list(depio.depread(fname))
	i=0
	out = open("%d.%s" % (sentnum,fname),'w')
	for outl in sents[sentnum]:
		out.write('\t'.join(outl) + '\n')
	break
	out.close()


import sys
import depio

sentnum = int(sys.argv[2])
fnames = [sys.argv[1]]
for fname in fnames:
	sents = list(depio.depread(fname))
	i=0
	out = open("%d.%s" % (sentnum,fname),'w')
	for outl in sents[sentnum]:
		out.write('\t'.join(outl) + '\n')
	out.write('\n')
	out.close()

Fix script to output new line at end of file
Fix script to output new line at end of file

  
  import sys
  import depio
  
  sentnum = int(sys.argv[2])
  fnames = [sys.argv[1]]
  for fname in fnames:
  	sents = list(depio.depread(fname))
  	i=0
  	out = open("%d.%s" % (sentnum,fname),'w')
  	for outl in sents[sentnum]:
  		out.write('\t'.join(outl) + '\n')
- 	break
+ 	out.write('\n')
  	out.close()
  
Fix script to output new line at end of file
## Code Before:

import sys
import depio

sentnum = int(sys.argv[2])
fnames = [sys.argv[1]]
for fname in fnames:
	sents = list(depio.depread(fname))
	i=0
	out = open("%d.%s" % (sentnum,fname),'w')
	for outl in sents[sentnum]:
		out.write('\t'.join(outl) + '\n')
	break
	out.close()

## Instruction:
Fix script to output new line at end of file
## Code After:

import sys
import depio

sentnum = int(sys.argv[2])
fnames = [sys.argv[1]]
for fname in fnames:
	sents = list(depio.depread(fname))
	i=0
	out = open("%d.%s" % (sentnum,fname),'w')
	for outl in sents[sentnum]:
		out.write('\t'.join(outl) + '\n')
	out.write('\n')
	out.close()
