The main entry point for extracting and analyzing narratives from news, filings, and transcripts.
Parameters
narrative_sentences
(list of str): List of narrative sentences to mine for.sources
(list of str): List of source IDs (e.g., from knowledge graph).document_type
(DocumentType): Type of document to mine (NEWS
, FILINGS
, TRANSCRIPTS
).companies
(list of str): List of company identifiers.start_date
(str): Start date (YYYY-MM-DD).end_date
(str): End date (YYYY-MM-DD).fiscal_year
(int, optional): Fiscal year to filter documents.rerank_threshold
(float, optional): Minimum similarity threshold for reranking results.Returns
NarrativeMiner
instance.Example
Run the narrative mining process and retrieve results.
Parameters
document_limit
(int, optional): Maximum number of documents to process per company.freq
(str, optional): Frequency for aggregating results (e.g., 'M'
for monthly).export_path
(str, optional): Path to export results as an Excel file.Returns
Example
The main entry point for extracting and analyzing narratives from news, filings, and transcripts.
Parameters
narrative_sentences
(list of str): List of narrative sentences to mine for.sources
(list of str): List of source IDs (e.g., from knowledge graph).document_type
(DocumentType): Type of document to mine (NEWS
, FILINGS
, TRANSCRIPTS
).companies
(list of str): List of company identifiers.start_date
(str): Start date (YYYY-MM-DD).end_date
(str): End date (YYYY-MM-DD).fiscal_year
(int, optional): Fiscal year to filter documents.rerank_threshold
(float, optional): Minimum similarity threshold for reranking results.Returns
NarrativeMiner
instance.Example
Run the narrative mining process and retrieve results.
Parameters
document_limit
(int, optional): Maximum number of documents to process per company.freq
(str, optional): Frequency for aggregating results (e.g., 'M'
for monthly).export_path
(str, optional): Path to export results as an Excel file.Returns
Example