コード例 #1
0
ファイル: Lexical.php プロジェクト: jessefulton/EmoTe
 /**
  * Returns the Singleton instance of the {@link LexicalUtility}.
  * 
  * @return the instance of {@link LexicalUtility}
  * @throws IOException
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new Eklekt_Emotion_Utility_Lexical();
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: Heuristics.php プロジェクト: jessefulton/EmoTe
 private static function isIntensityModifier($word)
 {
     return Eklekt_Emotion_Utility_Lexical::getInstance()->isIntensityModifier($word);
 }
コード例 #3
0
ファイル: Empathyscope.php プロジェクト: jessefulton/EmoTe
 private function __construct()
 {
     $this->lexUtil = Eklekt_Emotion_Utility_Lexical::getInstance();
 }