pelican-nlp 0.2.0__py3-none-any.whl → 0.2.2__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.
- pelican_nlp/_version.py +1 -1
- pelican_nlp/main.py +3 -6
- pelican_nlp/utils/setup_functions.py +1 -2
- {pelican_nlp-0.2.0.dist-info → pelican_nlp-0.2.2.dist-info}/METADATA +1 -1
- {pelican_nlp-0.2.0.dist-info → pelican_nlp-0.2.2.dist-info}/RECORD +9 -9
- {pelican_nlp-0.2.0.dist-info → pelican_nlp-0.2.2.dist-info}/WHEEL +0 -0
- {pelican_nlp-0.2.0.dist-info → pelican_nlp-0.2.2.dist-info}/entry_points.txt +0 -0
- {pelican_nlp-0.2.0.dist-info → pelican_nlp-0.2.2.dist-info}/licenses/LICENSE +0 -0
- {pelican_nlp-0.2.0.dist-info → pelican_nlp-0.2.2.dist-info}/top_level.txt +0 -0
pelican_nlp/_version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.2.
|
1
|
+
__version__ = "0.2.2"
|
pelican_nlp/main.py
CHANGED
@@ -24,9 +24,6 @@ from pelican_nlp.core import Corpus
|
|
24
24
|
from pelican_nlp.utils.setup_functions import subject_instantiator, load_config, remove_previous_derivative_dir
|
25
25
|
from pelican_nlp.preprocessing import LPDS
|
26
26
|
|
27
|
-
# Constants
|
28
|
-
# DEFAULT_CONFIG_PATH = 'configuration_files/config_morteza.yml'
|
29
|
-
|
30
27
|
class Pelican:
|
31
28
|
|
32
29
|
"""Main class for the Pelican project handling document processing and metric extraction."""
|
@@ -47,9 +44,9 @@ class Pelican:
|
|
47
44
|
# Verify the provided path is a YAML file
|
48
45
|
elif not config_path.endswith(('.yml', '.yaml')):
|
49
46
|
sys.exit('Error: Configuration file must be a YAML file (*.yml or *.yaml)')
|
50
|
-
|
47
|
+
|
51
48
|
self.config = load_config(config_path)
|
52
|
-
self.project_path = Path(
|
49
|
+
self.project_path = Path(config_path).resolve().parent
|
53
50
|
self.path_to_subjects = self.project_path / 'subjects'
|
54
51
|
self.output_directory = self.project_path / 'derivatives'
|
55
52
|
self.task = self.config['task_name']
|
@@ -81,7 +78,7 @@ class Pelican:
|
|
81
78
|
self._LPDS()
|
82
79
|
|
83
80
|
# Instantiate all subjects
|
84
|
-
subjects = subject_instantiator(self.config)
|
81
|
+
subjects = subject_instantiator(self.config, self.project_path)
|
85
82
|
|
86
83
|
# Process each corpus
|
87
84
|
for corpus_name in self.config['corpus_names']:
|
@@ -4,8 +4,7 @@ import shutil
|
|
4
4
|
import yaml
|
5
5
|
import sys
|
6
6
|
|
7
|
-
def subject_instantiator(config):
|
8
|
-
project_folder = config['PATH_TO_PROJECT_FOLDER']
|
7
|
+
def subject_instantiator(config, project_folder):
|
9
8
|
path_to_subjects = os.path.join(project_folder, 'subjects')
|
10
9
|
print('Instantiating Subjects...')
|
11
10
|
subjects = [Subject(subject) for subject in os.listdir(path_to_subjects)]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
pelican_nlp/__init__.py,sha256=TD5xjKeXXAH6nUWG-6igbClgovi5r8RIEqI_ix1QeYo,204
|
2
|
-
pelican_nlp/_version.py,sha256=
|
2
|
+
pelican_nlp/_version.py,sha256=SEm2Yab8SVn8M6Td3yj4N6sd_4bL1QVFrb1JDh_QKg0,21
|
3
3
|
pelican_nlp/cli.py,sha256=uXouL67mTjBynFMWpBTaGvGtEBWDnbS1BI7aRdxV-0M,439
|
4
|
-
pelican_nlp/main.py,sha256=
|
4
|
+
pelican_nlp/main.py,sha256=4Lmy87B3x0bDZbKa38Y9ig3DFYYvWhtK4WJpZwBsQB0,7520
|
5
5
|
pelican_nlp/Nils_backup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
pelican_nlp/Nils_backup/extract_acoustic_features.py,sha256=eSP8lXxbZ15YE1HqxGtma9uWOcSN-fI-ig-NwQ9eOA8,10771
|
7
7
|
pelican_nlp/Nils_backup/speaker_diarization_Nils.py,sha256=3RIhjKihu4Z1rruMt9KESFE2lqesfzIpRr7rLummUEo,10219
|
@@ -68,10 +68,10 @@ pelican_nlp/sample_configuration_files/config_general.yml,sha256=UuGnZUa-SVmioE9
|
|
68
68
|
pelican_nlp/utils/__init__.py,sha256=q1tGdOOj5UPRC2mGhoMUh8p4cbFCkkbD21bQaOVvFao,189
|
69
69
|
pelican_nlp/utils/csv_functions.py,sha256=hsG73gm3Up9sAerp6gIxuNHaeP1vJj6HSh7ggVm1SSo,7272
|
70
70
|
pelican_nlp/utils/sample_usage.py,sha256=W__OVMjWND-ZtxxRhfGJDHwbVpGlB-anXDxyA5P4cME,353
|
71
|
-
pelican_nlp/utils/setup_functions.py,sha256=
|
72
|
-
pelican_nlp-0.2.
|
73
|
-
pelican_nlp-0.2.
|
74
|
-
pelican_nlp-0.2.
|
75
|
-
pelican_nlp-0.2.
|
76
|
-
pelican_nlp-0.2.
|
77
|
-
pelican_nlp-0.2.
|
71
|
+
pelican_nlp/utils/setup_functions.py,sha256=t4WG5qd5iYpNNBGklje_8ukwmJp_C9RMLLi7veDgNeA,3574
|
72
|
+
pelican_nlp-0.2.2.dist-info/licenses/LICENSE,sha256=m3jshBZIXKiBX6qhmhtJcLTVJ1N6BEkQGIflneXvpYg,19336
|
73
|
+
pelican_nlp-0.2.2.dist-info/METADATA,sha256=MgnHIaYKPgOskFLH74VYmUjkvna53LiEwlj36aYkP_A,5562
|
74
|
+
pelican_nlp-0.2.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
75
|
+
pelican_nlp-0.2.2.dist-info/entry_points.txt,sha256=znlG0paAfju9P10UM3rm5HcCHoj4tarTllNpeaqH_gc,53
|
76
|
+
pelican_nlp-0.2.2.dist-info/top_level.txt,sha256=F0qlyqy5FCd3sTS_npUYPeLKN9_BZq6wD4qo9pI0xbg,12
|
77
|
+
pelican_nlp-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|