| Conditions | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | #!/usr/bin/python |
||
| 5 | def read_input(input_file): |
||
| 6 | ''' |
||
| 7 | This function read input file line by line change it to lowercase and split words of this line and yield |
||
| 8 | (return in each iteration) as list |
||
| 9 | :param file: input file |
||
| 10 | :type file : file object |
||
| 11 | :return: yield in each iteration |
||
| 12 | ''' |
||
| 13 | for line in input_file: |
||
| 14 | line = re.split('[^a-z]+', line.lower()) |
||
| 15 | yield line |
||
| 16 | def main(separator='\t'): |
||
| 31 |