<jupyter_start><jupyter_text>One example<jupyter_code>%%time
result = ner_model.get_ner_transcription(transcripts_pdf)<jupyter_output>2021-05-28 22:24:14,445 loading file /root/.flair/models/ner-english-ontonotes-fast/0d55dd3b912da9cf26e003035a0c269a0e9ab222f0be1e48a3bbba3a58c0fed0.c9907cd5fde3ce84b71a4172e7ca03841cd81ab71d13eb68aa08b259f57c00b6<jupyter_text>Multiple result with parallelization<jupyter_code>%%time
import tensorflow as tf
strategy = tf.distribute.MirroredStrategy()
with strategy.scope():
    executor = ThreadPool()
    result = executor.map(ner_model.get_ner_transcription, [transcripts_pdf] * 16)<jupyter_output>2021-05-28 22:36:38,469 loading file /root/.flair/models/ner-english-ontonotes-fast/0d55dd3b912da9cf26e003035a0c269a0e9ab222f0be1e48a3bbba3a58c0fed0.c9907cd5fde3ce84b71a4172e7ca03841cd81ab71d13eb68aa08b259f57c00b6
2021-05-28 22:36:38,472 loading file /root/.flair/models/ner-english-ontonotes-fast/0d55dd3b912da9cf26e003035a0c269a0e9ab222f0be1e48a3bbba3a58c0fed0.c9907cd5fde3ce<KEY>
{'fraction_non_alphanumeric': 0.08849557522123894, 'fraction_numerical': 0.2359882005899705, 'mean_word_length': 10.438202247191011, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '436561', 'license': 'Apache-2.0', 'n_tokens_mistral': 580, 'n_tokens_neox': 462, 'n_words': 34, 'path': 'galvasr2/codelabs/NERZeroShotPipeline.ipynb', 'repo_name': 'Ciroye/peoples-speech', 'size': '1062'}