2     Module containing the class SpecialPhrase.
 
   4     This class is a model used to transfer a special phrase through
 
   5     the process of load and importation.
 
  11         Model representing a special phrase.
 
  13     def __init__(self, p_label, p_class, p_type, p_operator):
 
  14         self.p_label = p_label.strip()
 
  15         self.p_class = p_class.strip()
 
  16         #Hack around a bug where building=yes was imported with quotes into the wiki
 
  17         self.p_type = re.sub(r'\"|"', '', p_type.strip())
 
  18         #Needed if some operator in the wiki are not written in english
 
  19         self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator