ratpmetro/main.py
def _classify_incident_cause(self, tweet):
        """
        Classify the cause of operational incident
        """
        tweet = tweet.lower().strip()
        for main_cause, keywords in self.incident_causes.items():
            for keyword in keywords:
                if keyword in tweet:
                    return main_cause
        else:
            return self.incident_cause_other

        Classify the cause of operational incident
        
Classify the cause of operational incident
Classify the cause of operational incident
def _classify_incident_cause(self, tweet):
        tweet = tweet.lower().strip()
        for main_cause, keywords in self.incident_causes.items():
            for keyword in keywords:
                if keyword in tweet:
                    return main_cause
        else:
            return self.incident_cause_other
def _classify_incident_cause ( self , tweet ) : tweet = tweet . lower ( ) . strip ( ) for main_cause , keywords in self . incident_causes . items ( ) : for keyword in keywords : if keyword in tweet : return main_cause else : return self . incident_cause_other
Classify the cause of operational incident
Classify the cause of operational incident
"""
        Classify the cause of operational incident
        """
self
tweet