You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
163 B

4 years ago
  1. filename = 'snips/train/seq.in'
  2. m = 0
  3. with open(filename) as f:
  4. for line in f:
  5. line = line.rstrip().split()
  6. m = max(len(line), m)
  7. print(m)