(self, index_name, sketch_id, timeline_id=None)
Initialize the analyzer object.

        Args:
            index_name: OpenSearch index name.
            sketch_id: Sketch ID.
            timeline_id: The timeline ID.
Initialize the analyzer object.
Initialize the analyzer object .
def __init__(self, index_name, sketch_id, timeline_id=None):
        """Initialize the analyzer object.

        Args:
            index_name: OpenSearch index name.
            sketch_id: Sketch ID.
            timeline_id: The timeline ID.
        """
        self.name = self.NAME
        self.index_name = index_name
        self.sketch = Sketch(sketch_id=sketch_id)
        self.timeline_id = timeline_id
        self.timeline_name = ''

        self.tagged_events = {}
        self.emoji_events = {}

        self.datastore = OpenSearchDataStore(
            host=current_app.config['OPENSEARCH_HOST'],
            port=current_app.config['OPENSEARCH_PORT'])

        if not hasattr(self, 'sketch'):
            self.sketch = None
def __init__ ( self , index_name , sketch_id , timeline_id = None ) : self . name = self . NAME self . index_name = index_name self . sketch = Sketch ( sketch_id = sketch_id ) self . timeline_id = timeline_id self . timeline_name = '' self . tagged_events = { } self . emoji_events = { } self . datastore = OpenSearchDataStore ( host = current_app . config [ 'OPENSEARCH_HOST' ] , port = current_app . config [ 'OPENSEARCH_PORT' ] ) if not hasattr ( self , 'sketch' ) : self . sketch = None