rasa/core/test.py
def add_to_store(
            self,
            action_predictions: Optional[List[str]] = None,
            action_targets: Optional[List[str]] = None,
            intent_predictions: Optional[List[str]] = None,
            intent_targets: Optional[List[str]] = None,
            entity_predictions: Optional[List[Dict[Text, Any]]] = None,
            entity_targets: Optional[List[Dict[Text, Any]]] = None
    ) -> None:
        """Add items or lists of items to the store"""
        for k, v in locals().items():
            if k != 'self' and v:
                attr = getattr(self, k)
                if isinstance(v, list):
                    attr.extend(v)
                else:
                    attr.append(v)
Add items or lists of items to the store
Add items or lists of items to the store
Add items or lists of items to the store
def add_to_store(
            self,
            action_predictions: Optional[List[str]] = None,
            action_targets: Optional[List[str]] = None,
            intent_predictions: Optional[List[str]] = None,
            intent_targets: Optional[List[str]] = None,
            entity_predictions: Optional[List[Dict[Text, Any]]] = None,
            entity_targets: Optional[List[Dict[Text, Any]]] = None
    ) -> None:
        for k, v in locals().items():
            if k != 'self' and v:
                attr = getattr(self, k)
                if isinstance(v, list):
                    attr.extend(v)
                else:
                    attr.append(v)
def add_to_store ( self , action_predictions : Optional [ List [ str ] ] = None , action_targets : Optional [ List [ str ] ] = None , intent_predictions : Optional [ List [ str ] ] = None , intent_targets : Optional [ List [ str ] ] = None , entity_predictions : Optional [ List [ Dict [ Text , Any ] ] ] = None , entity_targets : Optional [ List [ Dict [ Text , Any ] ] ] = None ) -> None : for k , v in locals ( ) . items ( ) : if k != 'self' and v : attr = getattr ( self , k ) if isinstance ( v , list ) : attr . extend ( v ) else : attr . append ( v )
Add items or lists of items to the store
Add items or lists of items to the store
"""Add items or lists of items to the store"""
self
action_predictions
Optional[List[str]]
action_targets
Optional[List[str]]
intent_predictions
Optional[List[str]]
intent_targets
Optional[List[str]]
entity_predictions
Optional[List[Dict[Text, Any]]]
entity_targets
Optional[List[Dict[Text, Any]]]