textstat/resources/TextStat.py
def freqProfile(tokenlist, model=None):
   """Generates a frequency profile from a token list.
      
      Parameter:
      
      tokenlist: an iterable sequence of tokens.
      
      Optional parameter:
      
      model: a dictionary data structure, i.e. a frequency profile
      default = None
      """
   if model:
      return mergeFreqProfiles(model, dict(Counter(tokenlist)))
   else:
      return dict(Counter(tokenlist))
Generates a frequency profile from a token list.
      
      Parameter:
      
      tokenlist: an iterable sequence of tokens.
      
      Optional parameter:
      
      model: a dictionary data structure, i.e. a frequency profile
      default = None
      
Generates a frequency profile from a token list.
Parameter.

an iterable sequence of tokens.

Optional parameter.

a dictionary data structure, i.e. a frequency profile
default = None
Generates a frequency profile from a token list . Parameter . an iterable sequence of tokens . Optional parameter . a dictionary data structure i . e . a frequency profile default = None
def freqProfile(tokenlist, model=None):
   if model:
      return mergeFreqProfiles(model, dict(Counter(tokenlist)))
   else:
      return dict(Counter(tokenlist))
def freqProfile ( tokenlist , model = None ) : if model : return mergeFreqProfiles ( model , dict ( Counter ( tokenlist ) ) ) else : return dict ( Counter ( tokenlist ) )
Generates a frequency profile from a token list.
Generates a frequency profile from a token list .
"""Generates a frequency profile from a token list.
      
      Parameter:
      
      tokenlist: an iterable sequence of tokens.
      
      Optional parameter:
      
      model: a dictionary data structure, i.e. a frequency profile
      default = None
      """
tokenlist
model