old_contents: #!/usr/bin/env python
  
  from extract_converter import ExtractConverter
  import click
  
  
  def convert(x):
      meta = {
          #meta['all'] = [w['item'] for w in x['result']['content']]
          'best': '\n'.join([w['Hypotheses'][0]['text'] for w in x['result']['VideoTextDetection']])
      }
      available_data = []
      return meta, available_data
  
  
  @click.command()
  @click.option('--reset', is_flag=True, help="reset data_available")
  @click.option('--clean', is_flag=True, help="reset data_available and remove existing meta.source")
  def run(reset, clean):
      conv = ExtractConverter('video_ocr', convert)
      conv.run()
  
  
  if __name__ == '__main__':
      run()
  
new_contents: #!/usr/bin/env python
  
  from extract_converter import ExtractConverter
  import click
  
  
  def convert(x):
      meta = {
          #'best': '\n'.join([w['Hypotheses'][0]['text'] for w in x['result']['VideoTextDetection']])
          #'all': '\n'.join(['\t'.join([h['text'] for h in w['Hypotheses']]) for w in x['result']['VideoTextDetection']])
          'best': x['result']['text_to_display_doclevel'],
          'all': x['result']['text_to_index_doclevel']
      }
      available_data = []
      return meta, available_data
  
  
  @click.command()
  @click.option('--reset', is_flag=True, help="reset data_available")
  @click.option('--clean', is_flag=True, help="reset data_available and remove existing meta.source")
  def run(reset, clean):
      conv = ExtractConverter('video_ocr', convert)
      conv.run()
  
  
  if __name__ == '__main__':
      run()
  
subject: use new filtered OCR fields