INNER CODE UNIT · Python

__init__

neuml/tldrstory · src/python/tldrstory/app.py:205

    def __init__(self, index):
        """
        Creates a new application.

        Args:
            index: index configuration
        """

        # Initialize logging
        logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(module)-10s: %(message)s")

        # Load YAML settings
        with open(index, "r") as f:
            # Read configuration
            self.index = yaml.safe_load(f)

    def query(self, query, topic, filters):
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…