docs: async function createCategorizer() {
    const classifierOptions = { tokenizer }
  
    // We can't initialize the model in parallel using `Promise.all` because with
    // it is not possible to manage errors separately
    let globalModel, localModel
  
    try {
      globalModel = await createGlobalModel(classifierOptions)
    } catch (e) {
      log('info', 'Failed to create global model:')
      log('info', e.message)
    }
  
    try {
      localModel = await createLocalModel(classifierOptions)
    } catch (e) {
      log('info', 'Failed to create local model:')
      log('info', e.message)
    }
  
    const modelsToApply = [globalModel, localModel].filter(Boolean)
  
    const categorize = transactions => {
      modelsToApply.forEach(model => model.categorize(transactions))
  
      return transactions
    }
  
    return { categorize }
  }