tokens: I can only speculate that it has something to do with the while loops , or with how it is constantly writing the value of $line to a file .
ner_tags: O O O O O O O O O O O O B-Code_Block O O O O O O O O O O O O B-Variable O O O O