-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Haru0517/test-deepsentibank
Test deepsentibank
- Loading branch information
Showing
4 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,7 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# DeepSentiBank-builder | ||
source/extract_nfeatures | ||
source/DeepSentiBank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
# test output file in DeepSentiBank | ||
|
||
if [ ! -e "DeepSentiBank" ]; then | ||
echo "\n**************** Downloading DeepSentiBank ****************" | ||
git clone --depth 1 https://github.com/generalmilk/DeepSentiBank | ||
fi | ||
rm DeepSentiBank/extract_nfeatures | ||
cp extract_nfeatures DeepSentiBank/ | ||
cd DeepSentiBank/ | ||
if [ ! -e "caffe_sentibank_train_iter_250000" ]; then | ||
echo "\n**************** Downloading sentibank trained model ****************" | ||
wget https://www.dropbox.com/s/lv3p67m21kr3mrg/caffe_sentibank_train_iter_250000 | ||
fi | ||
echo "\n**************** Running sentiBank.py ****************" | ||
python sentiBank.py test_image.jpg | ||
|
||
echo "\n** test_image.json created in source/DeepSentiBank!! **" |