Skip to content

Commit 1cdc5cf

Browse files
committed
Update README.md
1 parent 6c54bef commit 1cdc5cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ print_r($result);
4343
```
4444
##Output
4545
```
46-
['neg'=> 0.0, 'neu'=> 0.254, 'pos'=> 0.746, 'compound'=> 0.8316]
46+
['neg'=> 0.0, 'neu'=> 0.337, 'pos'=> 0.663, 'compound'=> 0.7096]
4747
```
4848

4949
### License

src/Analyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Analyzer{
1818

1919
function __construct($lexicon_file="Lexicons/vader_sentiment_lexicon.txt"){
2020
//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;
21+
$this->lexicon_file = realpath(dirname(__FILE__)) . "/" . $lexicon_file;
2222
$this->lexicon = $this->make_lex_dict();
2323
}
2424

0 commit comments

Comments
 (0)