pelican-nlp 0.1.2__py3-none-any.whl → 0.2.0__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.1.2"
1
+ __version__ = "0.2.0"
pelican_nlp/cli.py ADDED
@@ -0,0 +1,14 @@
1
+ import os
2
+ from pelican_nlp.main import Pelican
3
+
4
+ def main():
5
+ config_files = [f for f in os.listdir(".") if f.endswith(".yml")]
6
+ if not config_files:
7
+ print("No .yml configuration file found in the current directory.")
8
+ return
9
+
10
+ config_file = config_files[0] # You could also add logic to choose or validate
11
+ print(f"Using configuration file: {config_file}")
12
+
13
+ pelican = Pelican(config_file)
14
+ pelican.run()
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pelican_nlp
3
- Version: 0.1.2
3
+ Version: 0.2.0
4
4
  Summary: Preprocessing and Extraction of Linguistic Information for Computational Analysis
5
5
  Author-email: Yves Pauli <yves.pauli@gmail.com>
6
6
  License-Expression: CC-BY-NC-4.0
7
- Project-URL: Homepage, https://github.com/ypauli/PELICAN_nlp
8
- Project-URL: Repository, https://github.com/ypauli/PELICAN_nlp
9
- Project-URL: Documentation, https://github.com/ypauli/PELICAN_nlp#readme
10
- Project-URL: Bug Tracker, https://github.com/ypauli/PELICAN_nlp/issues
7
+ Project-URL: Homepage, https://github.com/ypauli/pelican_nlp
8
+ Project-URL: Repository, https://github.com/ypauli/pelican_nlp
9
+ Project-URL: Documentation, https://github.com/ypauli/pelican_nlp#readme
10
+ Project-URL: Bug Tracker, https://github.com/ypauli/pelican_nlp/issues
11
11
  Keywords: nlp,linguistics,preprocessing,language-processing,text-analysis
12
12
  Classifier: Development Status :: 1 - Planning
13
13
  Classifier: Intended Audience :: Science/Research
@@ -48,18 +48,18 @@ Dynamic: license-file
48
48
  PELICAN_nlp
49
49
  ====================================
50
50
 
51
- PELICAN_nlp stands for "Preprocessing and Extraction of Linguistic Information for Computational Analysis - Natural Language Processing". This package enables the creation of standardized and reproducible language processing pipelines, extracting linguistic features from various tasks like discourse, fluency, and image descriptions.
51
+ pelican_nlp stands for "Preprocessing and Extraction of Linguistic Information for Computational Analysis - Natural Language Processing". This package enables the creation of standardized and reproducible language processing pipelines, extracting linguistic features from various tasks like discourse, fluency, and image descriptions.
52
52
 
53
53
  .. image:: https://img.shields.io/pypi/v/package-name.svg
54
- :target: https://pypi.org/project/pelican-nlp/
54
+ :target: https://pypi.org/project/pelican_nlp/
55
55
  :alt: PyPI version
56
56
 
57
57
  .. image:: https://img.shields.io/github/license/username/package-name.svg
58
- :target: https://github.com/ypauli/PELICAN-nlp/blob/main/LICENSE
58
+ :target: https://github.com/ypauli/pelican_nlp/blob/main/LICENSE
59
59
  :alt: License
60
60
 
61
61
  .. image:: https://img.shields.io/pypi/pyversions/package-name.svg
62
- :target: https://pypi.org/project/pelican-nlp/
62
+ :target: https://pypi.org/project/pelican_nlp/
63
63
  :alt: Supported Python Versions
64
64
 
65
65
  Installation
@@ -75,7 +75,7 @@ For the latest development version:
75
75
 
76
76
  .. code-block:: bash
77
77
 
78
- pip install https://github.com/yourusername/yourrepo/releases/tag/v0.1.0-alpha
78
+ pip install https://github.com/ypauli/pelican_nlp/releases/tag/v0.1.2-alpha
79
79
 
80
80
  Usage
81
81
  =====
@@ -85,14 +85,31 @@ To use the pelican_nlp package:
85
85
  Adapt your configuration file to your needs.
86
86
  ALWAYS change the specified project folder location.
87
87
 
88
+ Save configuration file to main project directory.
89
+
90
+ Run from command line:
91
+
92
+ Navigate to main project directory in command line and enter the following command (Note: Folder must contain your subjects folder and your configuration.yml file):
93
+
94
+ .. code-block:: bash
95
+
96
+ pelican-run
97
+
98
+
99
+ Run with python script:
100
+
101
+ Create python file with IDE of your choice (e.g. Visual Studio Code, Pycharm, etc.) and copy the following code into the file:
102
+
88
103
  .. code-block:: python
89
104
 
90
105
  from pelican_nlp.main import Pelican
91
106
 
92
- configuration_file = "/path/to/your/config/file"
107
+ configuration_file = "/path/to/your/config/file.yml"
93
108
  pelican = Pelican(configuration_file)
94
109
  pelican.run()
95
110
 
111
+ Replace "/path/to/your/config/file" with the path to your configuration file located in your main project folder.
112
+
96
113
  For reliable operation, data must be stored in the *Language Processing Data Structure (LPDS)* format, inspired by brain imaging data structure conventions.
97
114
 
98
115
  Text and audio files should follow this naming convention:
@@ -125,15 +142,15 @@ Features
125
142
  Examples
126
143
  ========
127
144
 
128
- You can find example setups in the [`examples/`](https://github.com/ypauli/PELICAN-nlp/examples) folder.
145
+ You can find example setups in the [`examples/`](https://github.com/ypauli/pelican_nlp/tree/main/examples) folder.
129
146
  ALWAYS change the path to the project folder specified in the configuration file to your specific project location.
130
147
 
131
148
  Contributing
132
149
  ============
133
150
 
134
- Contributions are welcome! Please check out the `contributing guide <https://github.com/ypauli/PELICAN-nlp/blob/main/CONTRIBUTING.md>`_.
151
+ Contributions are welcome! Please check out the `contributing guide <https://github.com/ypauli/pelican_nlp/blob/main/CONTRIBUTING.md>`_.
135
152
 
136
153
  License
137
154
  =======
138
155
 
139
- This project is licensed under Attribution-NonCommercial 4.0 International. See the `LICENSE <https://github.com/ypauli/PELICAN-nlp/blob/main/LICENSE>`_ file for details.
156
+ This project is licensed under Attribution-NonCommercial 4.0 International. See the `LICENSE <https://github.com/ypauli/pelican_nlp/blob/main/LICENSE>`_ file for details.
@@ -1,5 +1,6 @@
1
1
  pelican_nlp/__init__.py,sha256=TD5xjKeXXAH6nUWG-6igbClgovi5r8RIEqI_ix1QeYo,204
2
- pelican_nlp/_version.py,sha256=K5SiDdEGYMpdqXThrqwTqECJJBOQNTQDrnpc2K5mzKs,21
2
+ pelican_nlp/_version.py,sha256=1KhrBItVjTCR-Sumh0o09b_aKrjTTcJrpTBh5GBw6Lk,21
3
+ pelican_nlp/cli.py,sha256=uXouL67mTjBynFMWpBTaGvGtEBWDnbS1BI7aRdxV-0M,439
3
4
  pelican_nlp/main.py,sha256=xKUqqA3sh9kbk07lKA_poILIU1c8oIeaSsVqPOPY5Tk,7596
4
5
  pelican_nlp/Nils_backup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
6
  pelican_nlp/Nils_backup/extract_acoustic_features.py,sha256=eSP8lXxbZ15YE1HqxGtma9uWOcSN-fI-ig-NwQ9eOA8,10771
@@ -68,8 +69,9 @@ pelican_nlp/utils/__init__.py,sha256=q1tGdOOj5UPRC2mGhoMUh8p4cbFCkkbD21bQaOVvFao
68
69
  pelican_nlp/utils/csv_functions.py,sha256=hsG73gm3Up9sAerp6gIxuNHaeP1vJj6HSh7ggVm1SSo,7272
69
70
  pelican_nlp/utils/sample_usage.py,sha256=W__OVMjWND-ZtxxRhfGJDHwbVpGlB-anXDxyA5P4cME,353
70
71
  pelican_nlp/utils/setup_functions.py,sha256=s0QcarswU8qeFBcEQNIYC1ooaD-xwRiTJn--yPEId8E,3612
71
- pelican_nlp-0.1.2.dist-info/licenses/LICENSE,sha256=m3jshBZIXKiBX6qhmhtJcLTVJ1N6BEkQGIflneXvpYg,19336
72
- pelican_nlp-0.1.2.dist-info/METADATA,sha256=Iuz8Y4HbCCFdcCYvXlGjANQBGd9Zf1Ez6tjD9nnVLuw,5001
73
- pelican_nlp-0.1.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
74
- pelican_nlp-0.1.2.dist-info/top_level.txt,sha256=F0qlyqy5FCd3sTS_npUYPeLKN9_BZq6wD4qo9pI0xbg,12
75
- pelican_nlp-0.1.2.dist-info/RECORD,,
72
+ pelican_nlp-0.2.0.dist-info/licenses/LICENSE,sha256=m3jshBZIXKiBX6qhmhtJcLTVJ1N6BEkQGIflneXvpYg,19336
73
+ pelican_nlp-0.2.0.dist-info/METADATA,sha256=cPHyXYc9hkl9h_--O52dmLWkMFvDxK2ncEhg7Xl01kc,5562
74
+ pelican_nlp-0.2.0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
75
+ pelican_nlp-0.2.0.dist-info/entry_points.txt,sha256=znlG0paAfju9P10UM3rm5HcCHoj4tarTllNpeaqH_gc,53
76
+ pelican_nlp-0.2.0.dist-info/top_level.txt,sha256=F0qlyqy5FCd3sTS_npUYPeLKN9_BZq6wD4qo9pI0xbg,12
77
+ pelican_nlp-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pelican-run = pelican_nlp.cli:main