We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cdc5cf commit 1dd1e80Copy full SHA for 1dd1e80
src/Analyzer.php
@@ -18,7 +18,7 @@ class Analyzer{
18
19
function __construct($lexicon_file="Lexicons/vader_sentiment_lexicon.txt"){
20
//Not sure about this as it forces lexicon file to be in the same directory as executing script
21
- $this->lexicon_file = realpath(dirname(__FILE__)) . "/" . $lexicon_file;
+ $this->lexicon_file = __DIR__ . DIRECTORY_SEPARATOR . $lexicon_file;
22
$this->lexicon = $this->make_lex_dict();
23
}
24
0 commit comments