(self, class_name_delimiter='.', module_name_delimiter=None)
Create a LanguageModel.

    Args:
      class_name_delimiter: (str) The string which delimits parts of a class
          name in code.
      module_name_delimiter: (str) The string which delimits parts of a module
          name in code. Defaults to class_name_delimiter
    Raises:
      ValueError: if some element of the class is mis-configured.
Create a LanguageModel.
Create a LanguageModel .
def __init__(self, class_name_delimiter='.', module_name_delimiter=None):
    """Create a LanguageModel.

    Args:
      class_name_delimiter: (str) The string which delimits parts of a class
          name in code.
      module_name_delimiter: (str) The string which delimits parts of a module
          name in code. Defaults to class_name_delimiter
    Raises:
      ValueError: if some element of the class is mis-configured.
    """
    super(LanguageModel, self).__init__()
    self._class_name_delimiter = class_name_delimiter
    self._module_name_delimiter = (
        module_name_delimiter or class_name_delimiter)

    # pylint: disable=g-bad-name
    self._SUPPORTED_TYPES = {
        'integer': self._Integer,
        'number': self._Float,
        'string': self._String,
        }
    self._policies_by_name = {
        'class_name': self.class_name_policy,
        'constant': self.constant_policy,
        'getter': self.getter_policy,
        'has': self.has_policy,
        'member': self.member_policy,
        'parameter_name': self.parameter_name_policy,
        'setter': self.setter_policy,
        'unset': self.unset_policy,
        'enum': self.enum_policy,
        }
def __init__ ( self , class_name_delimiter = '.' , module_name_delimiter = None ) : super ( LanguageModel , self ) . __init__ ( ) self . _class_name_delimiter = class_name_delimiter self . _module_name_delimiter = ( module_name_delimiter or class_name_delimiter ) # pylint: disable=g-bad-name self . _SUPPORTED_TYPES = { 'integer' : self . _Integer , 'number' : self . _Float , 'string' : self . _String , } self . _policies_by_name = { 'class_name' : self . class_name_policy , 'constant' : self . constant_policy , 'getter' : self . getter_policy , 'has' : self . has_policy , 'member' : self . member_policy , 'parameter_name' : self . parameter_name_policy , 'setter' : self . setter_policy , 'unset' : self . unset_policy , 'enum' : self . enum_policy , }