Skip to content

Commit 4e0d9e6

Browse files
committed
Made path to lexicons part of setup.py.
1 parent 6708a39 commit 4e0d9e6

14 files changed

+16
-1
lines changed

Diff for: setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
'keras==0.3',
1313
'sklearn',
1414
'theano'],
15+
package_data= {'socialsent' : ['data/lexicons/*.json']},
1516
zip_safe=False)

Diff for: socialsent/constants.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import util
2+
import os
23
from nltk.corpus import stopwords
4+
from pkg_resources import resource_filename
35

46
### SYSTEM AGNOSTIC CONSTANTS
57
######
6-
DATA = 'data/'
8+
DATA = os.path.abspath(resource_filename('socialsent', 'data')) + "/"
79
PROCESSED_LEXICONS = DATA + 'lexicons/'
810
POLARITIES = DATA + 'polarities/'
911
STOPWORDS = set(stopwords.words('english'))

Diff for: socialsent/data/lexicons/140-scores.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/bingliu.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/concreteness.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/finance.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/inquirer.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/kuperman.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/mpqa.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/qwn-scores.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/qwn.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/qwn2.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/twitter-scores.json

+1
Large diffs are not rendered by default.

Diff for: socialsent/data/lexicons/twitter.json

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)