original_string: public function decision($string)
      {
          // Do not call functions so that we'll compute only one time
          $dominantClass = $this->sentiment->categorise($string);
  
          switch ($dominantClass) {
              case 'neg':
                  return self::NEGATIVE;
  
              case 'neu':
                  return self::NEUTRAL;
  
              case 'pos':
                  return self::POSITIVE;
          }
      }
code: public function decision($string)
      {
          // Do not call functions so that we'll compute only one time
          $dominantClass = $this->sentiment->categorise($string);
  
          switch ($dominantClass) {
              case 'neg':
                  return self::NEGATIVE;
  
              case 'neu':
                  return self::NEUTRAL;
  
              case 'pos':
                  return self::POSITIVE;
          }
      }
code_tokens: public function decision ( $ string ) { // Do not call functions so that we'll compute only one time $ dominantClass = $ this -> sentiment -> categorise ( $ string ) ; switch ( $ dominantClass ) { case 'neg' : return self :: NEGATIVE ; case 'neu' : return self :: NEUTRAL ; case 'pos' : return self :: POSITIVE ; } }
docstring: Get the sentiment of a phrase.
  
  @param string $string The given sentence
  
  @return string Possible values: negative|neutral|positive
docstring_tokens: Get the sentiment of a phrase .