<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _extract_features(self):
 """ Get the feature data from the log file necessary for a reduction """

        for parsed_line in self.parsed_lines:
            result = {'raw': parsed_line}

            if 'ip' in parsed_line:
                result['ip'] = parsed_line['ip']
                if result['ip'] not in self.features['ips']:
                    self.features['ips'].append(result['ip'])