risk-network 0.0.9b42__py3-none-any.whl → 0.0.9b43__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
risk/__init__.py CHANGED
@@ -7,4 +7,4 @@ RISK: Regional Inference of Significant Kinships
7
7
 
8
8
  from risk.risk import RISK
9
9
 
10
- __version__ = "0.0.9-beta.42"
10
+ __version__ = "0.0.9-beta.43"
@@ -19,30 +19,12 @@ from nltk.tokenize import word_tokenize
19
19
  from risk.log import logger
20
20
  from scipy.sparse import coo_matrix
21
21
 
22
+ # Add the local NLTK data path to the system path
23
+ nltk.data.path.append("nltk_data")
22
24
 
23
- def _setup_nltk():
24
- """Ensure necessary NLTK data is downloaded."""
25
- try:
26
- nltk.data.find("tokenizers/punkt")
27
- except LookupError:
28
- # Force download if not found
29
- nltk.download("punkt", force=True, quiet=True)
30
-
31
- try:
32
- nltk.data.find("corpora/stopwords")
33
- except LookupError:
34
- nltk.download("stopwords", force=True, quiet=True)
35
-
36
- try:
37
- nltk.data.find("corpora/wordnet")
38
- except LookupError:
39
- nltk.download("wordnet", force=True, quiet=True)
40
-
41
-
42
- # Ensure you have the necessary NLTK data
43
- _setup_nltk()
44
- # Use NLTK's stopwords
45
- STOP_WORDS = set(stopwords.words("english"))
25
+ # Use NLTK's stopwords - load all languages
26
+ STOP_WORDS = set(word for lang in stopwords.fileids() for word in stopwords.words(lang))
27
+ # Initialize the WordNet lemmatizer, which is used for normalizing words
46
28
  LEMMATIZER = WordNetLemmatizer()
47
29
 
48
30
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: risk-network
3
- Version: 0.0.9b42
3
+ Version: 0.0.9b43
4
4
  Summary: A Python package for biological network analysis
5
5
  Author: Ira Horecka
6
6
  Author-email: Ira Horecka <ira89@icloud.com>
@@ -1,7 +1,7 @@
1
- risk/__init__.py,sha256=0G_X2wjPwCz7UG5bgL3bYfsnVpLvoRhcMyS2bV45ZKI,127
1
+ risk/__init__.py,sha256=38C2Lmnez9GxpKuiGvgqF2uJliPu7UtOjt8icOcAldw,127
2
2
  risk/risk.py,sha256=s827_lRknFseOP9O4zW8sP-IcCd2EzrpV_tnVY_tz5s,1104
3
3
  risk/annotations/__init__.py,sha256=parsbcux1U4urpUqh9AdzbDWuLj9HlMidycMPkpSQFo,179
4
- risk/annotations/annotations.py,sha256=_2crX1SKphCY1gJmDpRuvYouf8DowScSetbxCG3vLHk,15022
4
+ risk/annotations/annotations.py,sha256=FTnY-aeHpu8R3jwTARp_6VsUwF0Eu_Ix8QJgUajDK8A,14677
5
5
  risk/annotations/io.py,sha256=z1AJySsU-KL_IYuHa7j3nvuczmOHgK3WfaQ4TRunvrA,10499
6
6
  risk/log/__init__.py,sha256=7LxDysQu7doi0LAvlY2YbjN6iJH0fNknqy8lSLgeljo,217
7
7
  risk/log/console.py,sha256=PgjyEvyhYLUSHXPUKEqOmxsDsfrjPICIgqo_cAHq0N8,4575
@@ -33,8 +33,8 @@ risk/stats/stat_tests.py,sha256=tj0ri9w89_1fsjGLuafTWpfBEwZXpSLn7Ej2aAQ5lxk,1177
33
33
  risk/stats/permutation/__init__.py,sha256=OLmYLm2uj96hPsSaUs0vUqFYw6Thwch_aHtpL7L0ZFw,127
34
34
  risk/stats/permutation/permutation.py,sha256=BWjgdBpLVcHvmwHy0bmD4aJFccxifNBSrrCBPppyKf4,10569
35
35
  risk/stats/permutation/test_functions.py,sha256=KlECWTz1EZ6EPF_OAgHb0uznaIhopiVYb_AKUKuC4no,3120
36
- risk_network-0.0.9b42.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
37
- risk_network-0.0.9b42.dist-info/METADATA,sha256=vShfLdet9LjI_5lQOuQdcvaG1rIbwbBRO34gF3BFIcw,47627
38
- risk_network-0.0.9b42.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
39
- risk_network-0.0.9b42.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
40
- risk_network-0.0.9b42.dist-info/RECORD,,
36
+ risk_network-0.0.9b43.dist-info/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
37
+ risk_network-0.0.9b43.dist-info/METADATA,sha256=qM3Vt0aCMSbh6QzGTvNBB1f_1texUsh8Kuc2TnYFG5g,47627
38
+ risk_network-0.0.9b43.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
39
+ risk_network-0.0.9b43.dist-info/top_level.txt,sha256=NX7C2PFKTvC1JhVKv14DFlFAIFnKc6Lpsu1ZfxvQwVw,5
40
+ risk_network-0.0.9b43.dist-info/RECORD,,