tokens: Just replace sorted by sort , it looks like you 've already done the rest of the translation ( I ca n't check , not knowing how it was before ) :
ner_tags: O O B-Function O B-Function O O O O O O O O O O O O O O O O O O O O O O O O O O O