-
Notifications
You must be signed in to change notification settings - Fork 3
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 #1 from jabalazs/fixes
Several minor fixes to the readme and download scripts. Many thanks to jabalazs!
- Loading branch information
Showing
3 changed files
with
70 additions
and
52 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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
Code for the paper "Replication issues in syntax-based aspect extraction for opinion mining" | ||
# Code for the paper "Replication issues in syntax-based aspect extraction for opinion mining" | ||
|
||
- Download and install the software needed | ||
1. download and install Senna, http://ronan.collobert.com/senna/ | ||
2. download and install CoreNLP 3.6, http://stanfordnlp.github.io/CoreNLP/history.html | ||
3. download and install pyFIM http://www.borgelt.net/pyfim.html | ||
4. `pip install scipy numpy Levenshtein` | ||
|
||
1. Download and install Senna, http://ronan.collobert.com/senna/ | ||
2. Download and install CoreNLP 3.6, http://stanfordnlp.github.io/CoreNLP/history.html | ||
- Needs Java 8 | ||
3. Download and install pyFIM http://www.borgelt.net/pyfim.html | ||
- Download `fim.so` and place it in python's `dist-packages` directory | ||
4. Run `pip install scipy numpy python-Levenshtein` | ||
|
||
- Download data and create environment | ||
1. `create_data_folder.sh path_where_to_create_data_folder` | ||
2. modify ./enlp/settings.py accordingly | ||
|
||
1. Make `create_data_folder.sh` executable: `chmod +x create_data_folder.sh` | ||
2. Run `./create_data_folder.sh path/to/data/folder` (No trailing slash!) | ||
3. Modify `./enlp/settings.py` accordingly | ||
|
||
- Pre-process datasets | ||
1. `python process_corpus.py` | ||
|
||
- Run (will take several hours depending on the number of cores available) | ||
1. `python run.py path_to_store_output_json_files` | ||
1. `python run.py path/to/store/output/json/files` | ||
|
||
|
||
Check `process_corpus.py --help` and `run.py --help` for more details on how run them. | ||
Check `process_corpus.py --help` and `run.py --help` for more details on how run them. |
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