pelican-nlp 0.2.4__tar.gz → 0.2.6__tar.gz

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.
Files changed (102) hide show
  1. {pelican_nlp-0.2.4/pelican_nlp.egg-info → pelican_nlp-0.2.6}/PKG-INFO +21 -7
  2. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/README.rst +20 -6
  3. pelican_nlp-0.2.6/pelican_nlp/_version.py +1 -0
  4. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/cli.py +4 -0
  5. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/configuration_files/config_audio.yml +0 -1
  6. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/configuration_files/config_discourse.yml +0 -1
  7. {pelican_nlp-0.2.4/pelican_nlp/sample_configuration_files → pelican_nlp-0.2.6/pelican_nlp/configuration_files}/config_fluency.yml +0 -1
  8. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/configuration_files/config_general.yml +0 -1
  9. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/configuration_files/config_morteza.yml +0 -2
  10. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/core/corpus.py +1 -1
  11. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/main.py +4 -2
  12. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/sample_configuration_files/config_discourse.yml +0 -1
  13. {pelican_nlp-0.2.4/pelican_nlp/configuration_files → pelican_nlp-0.2.6/pelican_nlp/sample_configuration_files}/config_fluency.yml +0 -1
  14. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/sample_configuration_files/config_general.yml +2 -3
  15. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6/pelican_nlp.egg-info}/PKG-INFO +21 -7
  16. pelican_nlp-0.2.4/pelican_nlp/_version.py +0 -1
  17. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/LICENSE +0 -0
  18. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/MANIFEST.in +0 -0
  19. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_discourse/config_discourse.yml +0 -0
  20. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_discourse/subjects/sub-01/interview/sub-01_interview_schizophrenia_run-01.rtf +0 -0
  21. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/config_fluency.yml +0 -0
  22. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/subjects/sub-01/fluency/sub-01_fluency_sem_animals.txt +0 -0
  23. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/subjects/sub-01/fluency/sub-01_fluency_sem_clothes.txt +0 -0
  24. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/subjects/sub-01/fluency/sub-01_fluency_sem_food.txt +0 -0
  25. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/subjects/sub-02/fluency/sub-02_fluency_sem_animals.txt +0 -0
  26. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/subjects/sub-02/fluency/sub-02_fluency_sem_clothes.txt +0 -0
  27. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_fluency/subjects/sub-02/fluency/sub-02_fluency_sem_food.txt +0 -0
  28. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/config_image-descriptions.yml +0 -0
  29. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-01/image-description/sub-01_ses-01_image-description_drug.docx +0 -0
  30. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-01/image-description/sub-01_ses-01_image-description_placebo.docx +0 -0
  31. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-02/image-description/sub-01_ses-02_image-description_drug.docx +0 -0
  32. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-02/image-description/sub-01_ses-02_image-description_placebo.docx +0 -0
  33. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/subjects/sub-02/ses-01/image-description/sub-02_ses-01_image-description_drug.docx +0 -0
  34. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/examples/PyPI_testing_image-descriptions/subjects/sub-02/ses-01/image-description/sub-02_ses-01_image-description_placebo.docx +0 -0
  35. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/__init__.py +0 -0
  36. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/extract_acoustic_features.py +0 -0
  37. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/__init__.py +0 -0
  38. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/aggregate_fluency_results.py +0 -0
  39. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/behavioral_data.py +0 -0
  40. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/check_duplicates.py +0 -0
  41. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/coherence.py +0 -0
  42. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/config.py +0 -0
  43. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/main.py +0 -0
  44. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/optimality_without_tsa.py +0 -0
  45. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/plot_fluency.py +0 -0
  46. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/plotting_utils.py +0 -0
  47. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/questionnaires_data.py +0 -0
  48. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/stats_fluency.py +0 -0
  49. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/fluency/utils.py +0 -0
  50. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/speaker_diarization_Nils.py +0 -0
  51. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/__init__.py +0 -0
  52. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/annotation_tool.py +0 -0
  53. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/annotation_tool_boundaries.py +0 -0
  54. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/annotation_tool_sandbox.py +0 -0
  55. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/output/holmes_control_nova_all_outputs.json +0 -0
  56. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/test.json +0 -0
  57. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/transcribe_audio.py +0 -0
  58. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/transcribe_audio_chunked.py +0 -0
  59. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/transcription.py +0 -0
  60. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/transcription_gui.py +0 -0
  61. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Nils_backup/transcription/word_boundaries.py +0 -0
  62. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Silvia_files/Opensmile/opensmile_feature_extraction.py +0 -0
  63. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/Silvia_files/prosogram/prosogram.py +0 -0
  64. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/__init__.py +0 -0
  65. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/core/__init__.py +0 -0
  66. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/core/audio_document.py +0 -0
  67. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/core/document.py +0 -0
  68. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/core/subject.py +0 -0
  69. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/__init__.py +0 -0
  70. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/acoustic_feature_extraction.py +0 -0
  71. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/distance_from_randomness.py +0 -0
  72. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/extract_embeddings.py +0 -0
  73. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/extract_logits.py +0 -0
  74. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/language_model.py +0 -0
  75. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/semantic_similarity.py +0 -0
  76. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/test_documents/test_features.csv +0 -0
  77. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/test_documents/wallace_1.15_3.txt +0 -0
  78. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/test_documents/wallace_1.1_3.txt +0 -0
  79. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/extraction/test_documents/wallace_1_4.txt +0 -0
  80. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/metrics_statistics/embeddings_metrics_statistics.py +0 -0
  81. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/praat/__init__.py +0 -0
  82. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/LPDS.py +0 -0
  83. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/__init__.py +0 -0
  84. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/pipeline.py +0 -0
  85. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/speaker_diarization.py +0 -0
  86. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/text_cleaner.py +0 -0
  87. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/text_importer.py +0 -0
  88. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/text_normalizer.py +0 -0
  89. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/preprocessing/text_tokenizer.py +0 -0
  90. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/utils/__init__.py +0 -0
  91. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/utils/csv_functions.py +0 -0
  92. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/utils/sample_usage.py +0 -0
  93. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp/utils/setup_functions.py +0 -0
  94. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp.egg-info/SOURCES.txt +0 -0
  95. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp.egg-info/dependency_links.txt +0 -0
  96. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp.egg-info/entry_points.txt +0 -0
  97. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp.egg-info/requires.txt +0 -0
  98. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pelican_nlp.egg-info/top_level.txt +0 -0
  99. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/pyproject.toml +0 -0
  100. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/requirements.txt +0 -0
  101. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/setup.cfg +0 -0
  102. {pelican_nlp-0.2.4 → pelican_nlp-0.2.6}/tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pelican_nlp
3
- Version: 0.2.4
3
+ Version: 0.2.6
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
@@ -65,6 +65,18 @@ pelican_nlp stands for "Preprocessing and Extraction of Linguistic Information f
65
65
  Installation
66
66
  ============
67
67
 
68
+ Create conda environment
69
+
70
+ .. code-block:: bash
71
+
72
+ conda create -n pelican-nlp python=3.10
73
+
74
+ Activate environment
75
+
76
+ .. code-block:: bash
77
+
78
+ conda activate pelican-nlp
79
+
68
80
  Install the package using pip:
69
81
 
70
82
  .. code-block:: bash
@@ -80,12 +92,12 @@ For the latest development version:
80
92
  Usage
81
93
  =====
82
94
 
83
- To use the pelican_nlp package:
95
+ To run pelican_nlp you need a configuration.yml file in your project directory, which specifies the configurations used for your project.
96
+ Sample configuration files can be found on the pelican_nlp github repository: https://github.com/ypauli/pelican_nlp/tree/main/sample_configuration_files
84
97
 
85
- Adapt your configuration file to your needs.
86
- ALWAYS change the specified project folder location.
98
+ Adapt your configuration file to your needs and save your personal configuration.yml file to your main project directory.
87
99
 
88
- Save configuration file to main project directory.
100
+ Running pelican_nlp with your configurations can be done directly from the command line interface or via Python script.
89
101
 
90
102
  Run from command line:
91
103
 
@@ -93,13 +105,16 @@ Navigate to main project directory in command line and enter the following comma
93
105
 
94
106
  .. code-block:: bash
95
107
 
108
+ conda activate pelican-nlp
96
109
  pelican-run
97
110
 
98
111
 
99
112
  Run with python script:
100
113
 
101
114
  Create python file with IDE of your choice (e.g. Visual Studio Code, Pycharm, etc.) and copy the following code into the file:
115
+ Make sure to use the previously created conda environment 'pelican-nlp' for your project.
102
116
 
117
+ Run the following Python code:
103
118
  .. code-block:: python
104
119
 
105
120
  from pelican_nlp.main import Pelican
@@ -142,8 +157,7 @@ Features
142
157
  Examples
143
158
  ========
144
159
 
145
- You can find example setups in the [`examples/`](https://github.com/ypauli/pelican_nlp/tree/main/examples) folder.
146
- ALWAYS change the path to the project folder specified in the configuration file to your specific project location.
160
+ You can find example setups on the github repository in the 'examples` folder: https://github.com/ypauli/pelican_nlp/tree/main/examples
147
161
 
148
162
  Contributing
149
163
  ============
@@ -19,6 +19,18 @@ pelican_nlp stands for "Preprocessing and Extraction of Linguistic Information f
19
19
  Installation
20
20
  ============
21
21
 
22
+ Create conda environment
23
+
24
+ .. code-block:: bash
25
+
26
+ conda create -n pelican-nlp python=3.10
27
+
28
+ Activate environment
29
+
30
+ .. code-block:: bash
31
+
32
+ conda activate pelican-nlp
33
+
22
34
  Install the package using pip:
23
35
 
24
36
  .. code-block:: bash
@@ -34,12 +46,12 @@ For the latest development version:
34
46
  Usage
35
47
  =====
36
48
 
37
- To use the pelican_nlp package:
49
+ To run pelican_nlp you need a configuration.yml file in your project directory, which specifies the configurations used for your project.
50
+ Sample configuration files can be found on the pelican_nlp github repository: https://github.com/ypauli/pelican_nlp/tree/main/sample_configuration_files
38
51
 
39
- Adapt your configuration file to your needs.
40
- ALWAYS change the specified project folder location.
52
+ Adapt your configuration file to your needs and save your personal configuration.yml file to your main project directory.
41
53
 
42
- Save configuration file to main project directory.
54
+ Running pelican_nlp with your configurations can be done directly from the command line interface or via Python script.
43
55
 
44
56
  Run from command line:
45
57
 
@@ -47,13 +59,16 @@ Navigate to main project directory in command line and enter the following comma
47
59
 
48
60
  .. code-block:: bash
49
61
 
62
+ conda activate pelican-nlp
50
63
  pelican-run
51
64
 
52
65
 
53
66
  Run with python script:
54
67
 
55
68
  Create python file with IDE of your choice (e.g. Visual Studio Code, Pycharm, etc.) and copy the following code into the file:
69
+ Make sure to use the previously created conda environment 'pelican-nlp' for your project.
56
70
 
71
+ Run the following Python code:
57
72
  .. code-block:: python
58
73
 
59
74
  from pelican_nlp.main import Pelican
@@ -96,8 +111,7 @@ Features
96
111
  Examples
97
112
  ========
98
113
 
99
- You can find example setups in the [`examples/`](https://github.com/ypauli/pelican_nlp/tree/main/examples) folder.
100
- ALWAYS change the path to the project folder specified in the configuration file to your specific project location.
114
+ You can find example setups on the github repository in the 'examples` folder: https://github.com/ypauli/pelican_nlp/tree/main/examples
101
115
 
102
116
  Contributing
103
117
  ============
@@ -0,0 +1 @@
1
+ __version__ = "0.2.6"
@@ -7,6 +7,10 @@ def main():
7
7
  print("No .yml configuration file found in the current directory.")
8
8
  return
9
9
 
10
+ if len(config_files) > 1:
11
+ print("More than one configuration file found - remove unneeded files from project directory")
12
+ return
13
+
10
14
  config_file = config_files[0] # You could also add logic to choose or validate
11
15
  print(f"Using configuration file: {config_file}")
12
16
 
@@ -4,7 +4,6 @@
4
4
  # Basic Settings
5
5
  # -------------
6
6
  input_file: "audio" # Options: 'text' or 'audio'
7
- PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/Silvia"
8
7
  language: "dutch" # Options: 'german', 'english'
9
8
  recompute_everything: true # If false, reuses previously computed results
10
9
  output_document_information: true
@@ -5,7 +5,6 @@ discourse: &discourse_flag true
5
5
  #=====================================
6
6
 
7
7
  #general configurations; always adapt
8
- PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/Morteza/"
9
8
  language: "german" # Possibly add options for German and English
10
9
 
11
10
  task_name: "interview" # Give name of task used for creation of the input file (e.g., ['fluency', 'interview'])
@@ -5,7 +5,6 @@ fluency_task: &fluency_flag true
5
5
  #========================================
6
6
 
7
7
  #general configurations; always adapt
8
- PATH_TO_PROJECT_FOLDER: "/path/to/your/project"
9
8
  language: "german"
10
9
  multiple_sessions: &session_flag false
11
10
 
@@ -4,7 +4,6 @@
4
4
  # Basic Settings
5
5
  # -------------
6
6
  input_file: "text" # Options: 'text' or 'audio'
7
- PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/FluencyTest"
8
7
  language: "german" # Options: 'german', 'english'
9
8
  recompute_everything: true # If false, reuses previously computed results
10
9
 
@@ -3,8 +3,6 @@
3
3
  input_file: "text" #or 'audio'
4
4
  discourse: &discourse_flag true
5
5
 
6
- #PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/KetamineStudy/KetamineStudy_ProjectFolder/" # Set default to home directory, e.g., '/home/usr/...'
7
- PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/Morteza/"
8
6
  language: "german" # Possibly add options for German and English
9
7
 
10
8
  task_name: "interview" # Give name of task used for creation of the input file (e.g., ['fluency', 'interview'])
@@ -21,7 +21,7 @@ class Corpus:
21
21
  self.documents = documents
22
22
  self.config = configuration_settings
23
23
  self.project_folder = project_folder
24
- self.derivative_dir = project_folder + '/derivatives'
24
+ self.derivative_dir = project_folder / 'derivatives'
25
25
  self.pipeline = TextPreprocessingPipeline(self.config)
26
26
  self.task = configuration_settings['task_name']
27
27
  self.results_path = None
@@ -24,6 +24,8 @@ 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
+ project_path = '/home/yvespauli/PycharmProjects/PyPI_testing_fluency/config_fluency.yml'
28
+
27
29
  class Pelican:
28
30
 
29
31
  """Main class for the Pelican project handling document processing and metric extraction."""
@@ -31,7 +33,7 @@ class Pelican:
31
33
  def __init__(self, config_path: str = None, dev_mode: bool = True) -> None:
32
34
  self.dev_mode = dev_mode
33
35
 
34
- # If no config path is provided, use the default config from package
36
+ # If no config path is provided, use the default config from package; used for dev-mode
35
37
  if config_path is None:
36
38
  package_dir = Path(__file__).parent
37
39
  default_config = package_dir / 'configuration_files' / 'config_fluency.yml'
@@ -205,4 +207,4 @@ class Pelican:
205
207
 
206
208
 
207
209
  if __name__ == '__main__':
208
- Pelican().run()
210
+ Pelican(project_path).run()
@@ -5,7 +5,6 @@ discourse: &discourse_flag true
5
5
  #=====================================
6
6
 
7
7
  #general configurations; always adapt
8
- PATH_TO_PROJECT_FOLDER: "/path/to/your/project"
9
8
  language: "german" # Possibly add options for German and English
10
9
 
11
10
  task_name: "interview" # Give name of task used for creation of the input file (e.g., ['fluency', 'interview'])
@@ -5,7 +5,6 @@ fluency_task: &fluency_flag true
5
5
  #========================================
6
6
 
7
7
  #general configurations; always adapt
8
- PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/FluencyTest"
9
8
  language: "german"
10
9
  multiple_sessions: &session_flag false
11
10
 
@@ -4,9 +4,8 @@
4
4
  # Basic Settings
5
5
  # -------------
6
6
  input_file: "text" # Options: 'text' or 'audio'
7
- PATH_TO_PROJECT_FOLDER: "/path/to/your/project"
8
7
  language: "german"
9
- recompute_everything: true # If false, reuses previously computed results
8
+ recompute_everything: true #If false will give warning if output folder already exists
10
9
 
11
10
  # Task Configuration
12
11
  # -----------------
@@ -21,7 +20,7 @@ corpus_names: # List of task corpora
21
20
  multiple_sessions: false
22
21
  number_of_subjects: null # If null, auto-detected
23
22
  number_of_speakers: 1
24
- subject_speakertag: null # Speaker tag for subject (e.g., "B")
23
+ subject_speakertag: null # Speaker tag for subject (e.g., "B"), only for discourse
25
24
 
26
25
  # Document Structure
27
26
  # ----------------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pelican_nlp
3
- Version: 0.2.4
3
+ Version: 0.2.6
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
@@ -65,6 +65,18 @@ pelican_nlp stands for "Preprocessing and Extraction of Linguistic Information f
65
65
  Installation
66
66
  ============
67
67
 
68
+ Create conda environment
69
+
70
+ .. code-block:: bash
71
+
72
+ conda create -n pelican-nlp python=3.10
73
+
74
+ Activate environment
75
+
76
+ .. code-block:: bash
77
+
78
+ conda activate pelican-nlp
79
+
68
80
  Install the package using pip:
69
81
 
70
82
  .. code-block:: bash
@@ -80,12 +92,12 @@ For the latest development version:
80
92
  Usage
81
93
  =====
82
94
 
83
- To use the pelican_nlp package:
95
+ To run pelican_nlp you need a configuration.yml file in your project directory, which specifies the configurations used for your project.
96
+ Sample configuration files can be found on the pelican_nlp github repository: https://github.com/ypauli/pelican_nlp/tree/main/sample_configuration_files
84
97
 
85
- Adapt your configuration file to your needs.
86
- ALWAYS change the specified project folder location.
98
+ Adapt your configuration file to your needs and save your personal configuration.yml file to your main project directory.
87
99
 
88
- Save configuration file to main project directory.
100
+ Running pelican_nlp with your configurations can be done directly from the command line interface or via Python script.
89
101
 
90
102
  Run from command line:
91
103
 
@@ -93,13 +105,16 @@ Navigate to main project directory in command line and enter the following comma
93
105
 
94
106
  .. code-block:: bash
95
107
 
108
+ conda activate pelican-nlp
96
109
  pelican-run
97
110
 
98
111
 
99
112
  Run with python script:
100
113
 
101
114
  Create python file with IDE of your choice (e.g. Visual Studio Code, Pycharm, etc.) and copy the following code into the file:
115
+ Make sure to use the previously created conda environment 'pelican-nlp' for your project.
102
116
 
117
+ Run the following Python code:
103
118
  .. code-block:: python
104
119
 
105
120
  from pelican_nlp.main import Pelican
@@ -142,8 +157,7 @@ Features
142
157
  Examples
143
158
  ========
144
159
 
145
- You can find example setups in the [`examples/`](https://github.com/ypauli/pelican_nlp/tree/main/examples) folder.
146
- ALWAYS change the path to the project folder specified in the configuration file to your specific project location.
160
+ You can find example setups on the github repository in the 'examples` folder: https://github.com/ypauli/pelican_nlp/tree/main/examples
147
161
 
148
162
  Contributing
149
163
  ============
@@ -1 +0,0 @@
1
- __version__ = "0.2.4"
File without changes
File without changes
File without changes
File without changes