def read_sentiments( path ):
  """
  Read sentiments from file into sentiment dictionary keyed by symbol

  Parameters
  ----------
  path
    the path of the sentiment data file
  """
  
  sentiments = dict()
  with open( path, 'r' ) as f:
    for line in f:
      if(line[0] != '#'):
        l = line.split()
        sentiments[l[0]] = l[1]
  return sentiments