Toggle Menu
Prev Up Next

# `langchain_experimental.video_captioning.services.caption_service`.CaptionProcessor

class langchain_experimental.video_captioning.services.caption_service.CaptionProcessor(llm: BaseLanguageModel, verbose: bool = True, similarity_threshold: int = 80, use_unclustered_models: bool = False)

  Methods

  `__init__`(llm[, verbose, ...]) |
  `process`(video_models[, run_manager]) |

  Parameters

    - llm (BaseLanguageModel) –

    - verbose (bool) –

    - similarity_threshold (int) –

    - use_unclustered_models (bool) –

  __init__(llm: BaseLanguageModel, verbose: bool = True, similarity_threshold: int = 80, use_unclustered_models: bool = False) → None
    Parameters

      - llm (BaseLanguageModel) –

      - verbose (bool) –

      - similarity_threshold (int) –

      - use_unclustered_models (bool) –

    Return type

      None

  process(video_models: List[VideoModel], run_manager: Optional[CallbackManagerForChainRun] = None) → List[VideoModel]
    Parameters

      - video_models (List[VideoModel]) –

      - run_manager (Optional[CallbackManagerForChainRun]) –

    Return type

      List[VideoModel]