Skip to main content

NarrativeMiner

We are sunsetting our SDKs and will no longer add new features, security patches, bug fixes, or technical support for them. To access the latest capabilities and ongoing improvements, we encourage you to migrate to our RESTful API.SDK support will officially end on December 31, 2026. On this date, the underlying endpoints used by the SDKs and related documentation will be decommissioned.To avoid any disruption to your services, please ensure your migration is complete by that date.For migration assistance, please contact us at support@bigdata.com.
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

mine_narratives

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
  • Mining results (typically a DataFrame or list of results).
Example