tokens: sed -n ' / ^ text/ , / ^($/p ' yourfile will print all lines starting from where text is found until the ( is found at the beginning of a line .
ner_tags: B-Code_Block I-Code_Block I-Code_Block I-Code_Block I-Code_Block I-Code_Block I-Code_Block I-Code_Block I-Code_Block B-Code_Block I-Code_Block O O O O O O O B-Value O O O O B-Value O O O O O O O O O