pelican-nlp 0.1.0__tar.gz → 0.1.2__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 (162) hide show
  1. pelican_nlp-0.1.2/MANIFEST.in +27 -0
  2. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/PKG-INFO +14 -21
  3. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/README.rst +13 -20
  4. pelican_nlp-0.1.2/examples/PyPI_testing_discourse/config_discourse.yml +106 -0
  5. pelican_nlp-0.1.2/examples/PyPI_testing_discourse/subjects/sub-01/interview/sub-01_interview_schizophrenia_run-01.rtf +40 -0
  6. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/config_fluency.yml +108 -0
  7. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/subjects/sub-01/fluency/sub-01_fluency_sem_animals.txt +1 -0
  8. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/subjects/sub-01/fluency/sub-01_fluency_sem_clothes.txt +1 -0
  9. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/subjects/sub-01/fluency/sub-01_fluency_sem_food.txt +1 -0
  10. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/subjects/sub-02/fluency/sub-02_fluency_sem_animals.txt +1 -0
  11. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/subjects/sub-02/fluency/sub-02_fluency_sem_clothes.txt +1 -0
  12. pelican_nlp-0.1.2/examples/PyPI_testing_fluency/subjects/sub-02/fluency/sub-02_fluency_sem_food.txt +1 -0
  13. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/config_image-descriptions.yml +136 -0
  14. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-01/image-description/sub-01_ses-01_image-description_drug.docx +0 -0
  15. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-01/image-description/sub-01_ses-01_image-description_placebo.docx +0 -0
  16. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-02/image-description/sub-01_ses-02_image-description_drug.docx +0 -0
  17. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/subjects/sub-01/ses-02/image-description/sub-01_ses-02_image-description_placebo.docx +0 -0
  18. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/subjects/sub-02/ses-01/image-description/sub-02_ses-01_image-description_drug.docx +0 -0
  19. pelican_nlp-0.1.2/examples/PyPI_testing_image-descriptions/subjects/sub-02/ses-01/image-description/sub-02_ses-01_image-description_placebo.docx +0 -0
  20. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/__init__.py +0 -0
  21. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/extract_acoustic_features.py +274 -0
  22. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/__init__.py +0 -0
  23. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/aggregate_fluency_results.py +186 -0
  24. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/behavioral_data.py +42 -0
  25. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/check_duplicates.py +169 -0
  26. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/coherence.py +653 -0
  27. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/config.py +231 -0
  28. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/main.py +182 -0
  29. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/optimality_without_tsa.py +466 -0
  30. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/plot_fluency.py +573 -0
  31. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/plotting_utils.py +170 -0
  32. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/questionnaires_data.py +43 -0
  33. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/stats_fluency.py +930 -0
  34. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/fluency/utils.py +41 -0
  35. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/speaker_diarization_Nils.py +328 -0
  36. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/__init__.py +0 -0
  37. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/annotation_tool.py +1001 -0
  38. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/annotation_tool_boundaries.py +1122 -0
  39. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/annotation_tool_sandbox.py +985 -0
  40. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/output/holmes_control_nova_all_outputs.json +7948 -0
  41. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/test.json +1 -0
  42. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/transcribe_audio.py +314 -0
  43. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/transcribe_audio_chunked.py +695 -0
  44. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/transcription.py +801 -0
  45. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/transcription_gui.py +955 -0
  46. pelican_nlp-0.1.2/pelican_nlp/Nils_backup/transcription/word_boundaries.py +190 -0
  47. pelican_nlp-0.1.2/pelican_nlp/Silvia_files/Opensmile/opensmile_feature_extraction.py +66 -0
  48. pelican_nlp-0.1.2/pelican_nlp/Silvia_files/prosogram/prosogram.py +104 -0
  49. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/__init__.py +1 -1
  50. pelican_nlp-0.1.2/pelican_nlp/_version.py +1 -0
  51. pelican_nlp-0.1.2/pelican_nlp/configuration_files/config_audio.yml +150 -0
  52. pelican_nlp-0.1.2/pelican_nlp/configuration_files/config_discourse.yml +104 -0
  53. pelican_nlp-0.1.2/pelican_nlp/configuration_files/config_fluency.yml +108 -0
  54. pelican_nlp-0.1.2/pelican_nlp/configuration_files/config_general.yml +131 -0
  55. pelican_nlp-0.1.2/pelican_nlp/configuration_files/config_morteza.yml +103 -0
  56. pelican_nlp-0.1.2/pelican_nlp/praat/__init__.py +29 -0
  57. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp.egg-info/PKG-INFO +14 -21
  58. pelican_nlp-0.1.2/pelican_nlp.egg-info/SOURCES.txt +97 -0
  59. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pyproject.toml +5 -2
  60. pelican_nlp-0.1.0/.DS_Store +0 -0
  61. pelican_nlp-0.1.0/.gitignore +0 -17
  62. pelican_nlp-0.1.0/.idea/PELICAN-nlp.iml +0 -17
  63. pelican_nlp-0.1.0/.idea/inspectionProfiles/Project_Default.xml +0 -13
  64. pelican_nlp-0.1.0/.idea/inspectionProfiles/profiles_settings.xml +0 -6
  65. pelican_nlp-0.1.0/.idea/misc.xml +0 -7
  66. pelican_nlp-0.1.0/.idea/modules.xml +0 -8
  67. pelican_nlp-0.1.0/.idea/vcs.xml +0 -6
  68. pelican_nlp-0.1.0/.idea/workspace.xml +0 -60
  69. pelican_nlp-0.1.0/MANIFEST.in +0 -3
  70. pelican_nlp-0.1.0/TODO.txt +0 -13
  71. pelican_nlp-0.1.0/__pycache__/config.cpython-312.pyc +0 -0
  72. pelican_nlp-0.1.0/pelican_nlp.egg-info/SOURCES.txt +0 -106
  73. pelican_nlp-0.1.0/simu/__init__.py +0 -4
  74. pelican_nlp-0.1.0/simu/__pycache__/__init__.cpython-312.pyc +0 -0
  75. pelican_nlp-0.1.0/simu/__pycache__/generate_options.cpython-312.pyc +0 -0
  76. pelican_nlp-0.1.0/simu/__pycache__/generate_parameter.cpython-312.pyc +0 -0
  77. pelican_nlp-0.1.0/simu/__pycache__/generate_text.cpython-312.pyc +0 -0
  78. pelican_nlp-0.1.0/simu/__pycache__/pipeline_setup.cpython-312.pyc +0 -0
  79. pelican_nlp-0.1.0/simu/__pycache__/setup_pipeline.cpython-312.pyc +0 -0
  80. pelican_nlp-0.1.0/simu/__pycache__/simu_config.cpython-312.pyc +0 -0
  81. pelican_nlp-0.1.0/simu/__pycache__/subject_config.cpython-312.pyc +0 -0
  82. pelican_nlp-0.1.0/simu/generate_parameter.py +0 -118
  83. pelican_nlp-0.1.0/simu/generate_text.py +0 -41
  84. pelican_nlp-0.1.0/simu/setup_pipeline.py +0 -107
  85. pelican_nlp-0.1.0/simu/simu_config.py +0 -77
  86. pelican_nlp-0.1.0/simu/simu_main.py +0 -92
  87. pelican_nlp-0.1.0/simu/simu_output/group_a/progress.json +0 -442
  88. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_0.json +0 -1550
  89. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_1.json +0 -1550
  90. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_2.json +0 -1550
  91. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_3.json +0 -1550
  92. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_4.json +0 -1550
  93. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_5.json +0 -1550
  94. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_6.json +0 -1550
  95. pelican_nlp-0.1.0/simu/simu_output/group_a/subject_7.json +0 -1550
  96. pelican_nlp-0.1.0/simu/simu_output/group_b/progress.json +0 -442
  97. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_0.json +0 -1550
  98. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_1.json +0 -1550
  99. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_2.json +0 -1550
  100. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_3.json +0 -1550
  101. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_4.json +0 -1550
  102. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_5.json +0 -1550
  103. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_6.json +0 -1550
  104. pelican_nlp-0.1.0/simu/simu_output/group_b/subject_7.json +0 -1550
  105. pelican_nlp-0.1.0/simu/simu_output/group_c/progress.json +0 -442
  106. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_0.json +0 -1550
  107. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_1.json +0 -1550
  108. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_2.json +0 -1550
  109. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_3.json +0 -1550
  110. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_4.json +0 -1550
  111. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_5.json +0 -1550
  112. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_6.json +0 -1550
  113. pelican_nlp-0.1.0/simu/simu_output/group_c/subject_7.json +0 -1550
  114. pelican_nlp-0.1.0/simu/simu_output/group_d/progress.json +0 -442
  115. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_0.json +0 -1550
  116. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_1.json +0 -1550
  117. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_2.json +0 -1550
  118. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_3.json +0 -1550
  119. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_4.json +0 -1550
  120. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_5.json +0 -1550
  121. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_6.json +0 -1550
  122. pelican_nlp-0.1.0/simu/simu_output/group_d/subject_7.json +0 -1550
  123. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/LICENSE +0 -0
  124. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/core/__init__.py +0 -0
  125. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/core/audio_document.py +0 -0
  126. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/core/corpus.py +0 -0
  127. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/core/document.py +0 -0
  128. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/core/subject.py +0 -0
  129. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/__init__.py +0 -0
  130. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/acoustic_feature_extraction.py +0 -0
  131. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/distance_from_randomness.py +0 -0
  132. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/extract_embeddings.py +0 -0
  133. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/extract_logits.py +0 -0
  134. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/language_model.py +0 -0
  135. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/semantic_similarity.py +0 -0
  136. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/test_documents/test_features.csv +0 -0
  137. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/test_documents/wallace_1.15_3.txt +0 -0
  138. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/test_documents/wallace_1.1_3.txt +0 -0
  139. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/extraction/test_documents/wallace_1_4.txt +0 -0
  140. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/main.py +0 -0
  141. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/metrics_statistics/embeddings_metrics_statistics.py +0 -0
  142. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/LPDS.py +0 -0
  143. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/__init__.py +0 -0
  144. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/pipeline.py +0 -0
  145. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/speaker_diarization.py +0 -0
  146. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/text_cleaner.py +0 -0
  147. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/text_importer.py +0 -0
  148. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/text_normalizer.py +0 -0
  149. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/preprocessing/text_tokenizer.py +0 -0
  150. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/sample_configuration_files/config_discourse.yml +0 -0
  151. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/sample_configuration_files/config_fluency.yml +0 -0
  152. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/sample_configuration_files/config_general.yml +0 -0
  153. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/utils/__init__.py +0 -0
  154. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/utils/csv_functions.py +0 -0
  155. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/utils/sample_usage.py +0 -0
  156. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp/utils/setup_functions.py +0 -0
  157. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp.egg-info/dependency_links.txt +0 -0
  158. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp.egg-info/requires.txt +0 -0
  159. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/pelican_nlp.egg-info/top_level.txt +0 -0
  160. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/requirements.txt +0 -0
  161. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/setup.cfg +0 -0
  162. {pelican_nlp-0.1.0 → pelican_nlp-0.1.2}/tests/__init__.py +0 -0
@@ -0,0 +1,27 @@
1
+ include README.rst
2
+ include LICENSE
3
+ include requirements.txt
4
+ include pyproject.toml
5
+
6
+ # Include documentation
7
+ include CONTRIBUTING.md
8
+ include CHANGES
9
+ recursive-include docs *
10
+
11
+ # Include examples
12
+ recursive-include examples *.py *.yml *.yaml *.txt
13
+
14
+ # Include test files
15
+ recursive-include tests *.py
16
+
17
+ # Include package data
18
+ recursive-include pelican_nlp *.py *.json *.yml *.yaml
19
+
20
+ # Exclude cache and build files
21
+ global-exclude __pycache__
22
+ global-exclude *.py[cod]
23
+ global-exclude *.so
24
+ global-exclude .git*
25
+ global-exclude .DS_Store
26
+
27
+ exclude .gitignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pelican_nlp
3
- Version: 0.1.0
3
+ Version: 0.1.2
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
@@ -51,7 +51,7 @@ PELICAN_nlp
51
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/package-name/
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
@@ -59,7 +59,7 @@ PELICAN_nlp stands for "Preprocessing and Extraction of Linguistic Information f
59
59
  :alt: License
60
60
 
61
61
  .. image:: https://img.shields.io/pypi/pyversions/package-name.svg
62
- :target: https://pypi.org/project/package-name/
62
+ :target: https://pypi.org/project/pelican-nlp/
63
63
  :alt: Supported Python Versions
64
64
 
65
65
  Installation
@@ -75,13 +75,16 @@ For the latest development version:
75
75
 
76
76
  .. code-block:: bash
77
77
 
78
- pip install git+https://github.com/ypauli/PELICAN_nlp.git
78
+ pip install https://github.com/yourusername/yourrepo/releases/tag/v0.1.0-alpha
79
79
 
80
80
  Usage
81
81
  =====
82
82
 
83
83
  To use the pelican_nlp package:
84
84
 
85
+ Adapt your configuration file to your needs.
86
+ ALWAYS change the specified project folder location.
87
+
85
88
  .. code-block:: python
86
89
 
87
90
  from pelican_nlp.main import Pelican
@@ -94,7 +97,7 @@ For reliable operation, data must be stored in the *Language Processing Data Str
94
97
 
95
98
  Text and audio files should follow this naming convention:
96
99
 
97
- subjectID_sessionID_task_task-supplement_corpus.extension
100
+ [subjectID]_[sessionID]_[task]_[task-supplement]_[corpus].[extension]
98
101
 
99
102
  - subjectID: ID of subject (e.g., sub-01), mandatory
100
103
  - sessionID: ID of session (e.g., ses-01), if available
@@ -104,7 +107,8 @@ subjectID_sessionID_task_task-supplement_corpus.extension
104
107
  - extension: file extension (e.g., txt / pdf / docx / rtf), mandatory
105
108
 
106
109
  Example filenames:
107
- - sub-01_ses-01_interview_schizophrenia.rtf
110
+
111
+ - sub-01_interview_schizophrenia.rtf
108
112
  - sub-03_ses-02_fluency_semantic_animals.docx
109
113
 
110
114
  To optimize performance, close other programs and limit GPU usage during language processing.
@@ -121,26 +125,15 @@ Features
121
125
  Examples
122
126
  ========
123
127
 
124
- Here's a detailed usage example:
125
-
126
- .. code-block:: python
127
-
128
- from package_name import SomeClass
129
-
130
- configuration_file = "config_fluency.yml"
131
- pelican.run(configuration_file)
132
-
133
- *Link to config_fluency.yml*
134
-
135
- Sample folder for data collection of the semantic fluency task:
136
- *Link to sample_folder*
128
+ You can find example setups in the [`examples/`](https://github.com/ypauli/PELICAN-nlp/examples) folder.
129
+ ALWAYS change the path to the project folder specified in the configuration file to your specific project location.
137
130
 
138
131
  Contributing
139
132
  ============
140
133
 
141
- Contributions are welcome! Please check out the `contributing guide <https://github.com/ypauli/PELICAN/blob/main/CONTRIBUTING.md>`_.
134
+ Contributions are welcome! Please check out the `contributing guide <https://github.com/ypauli/PELICAN-nlp/blob/main/CONTRIBUTING.md>`_.
142
135
 
143
136
  License
144
137
  =======
145
138
 
146
- This project is licensed under Attribution-NonCommercial 4.0 International. See the `LICENSE <https://github.com/ypauli/PELICAN/blob/main/LICENSE>`_ file for details.
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.
@@ -5,7 +5,7 @@ PELICAN_nlp
5
5
  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.
6
6
 
7
7
  .. image:: https://img.shields.io/pypi/v/package-name.svg
8
- :target: https://pypi.org/project/package-name/
8
+ :target: https://pypi.org/project/pelican-nlp/
9
9
  :alt: PyPI version
10
10
 
11
11
  .. image:: https://img.shields.io/github/license/username/package-name.svg
@@ -13,7 +13,7 @@ PELICAN_nlp stands for "Preprocessing and Extraction of Linguistic Information f
13
13
  :alt: License
14
14
 
15
15
  .. image:: https://img.shields.io/pypi/pyversions/package-name.svg
16
- :target: https://pypi.org/project/package-name/
16
+ :target: https://pypi.org/project/pelican-nlp/
17
17
  :alt: Supported Python Versions
18
18
 
19
19
  Installation
@@ -29,13 +29,16 @@ For the latest development version:
29
29
 
30
30
  .. code-block:: bash
31
31
 
32
- pip install git+https://github.com/ypauli/PELICAN_nlp.git
32
+ pip install https://github.com/yourusername/yourrepo/releases/tag/v0.1.0-alpha
33
33
 
34
34
  Usage
35
35
  =====
36
36
 
37
37
  To use the pelican_nlp package:
38
38
 
39
+ Adapt your configuration file to your needs.
40
+ ALWAYS change the specified project folder location.
41
+
39
42
  .. code-block:: python
40
43
 
41
44
  from pelican_nlp.main import Pelican
@@ -48,7 +51,7 @@ For reliable operation, data must be stored in the *Language Processing Data Str
48
51
 
49
52
  Text and audio files should follow this naming convention:
50
53
 
51
- subjectID_sessionID_task_task-supplement_corpus.extension
54
+ [subjectID]_[sessionID]_[task]_[task-supplement]_[corpus].[extension]
52
55
 
53
56
  - subjectID: ID of subject (e.g., sub-01), mandatory
54
57
  - sessionID: ID of session (e.g., ses-01), if available
@@ -58,7 +61,8 @@ subjectID_sessionID_task_task-supplement_corpus.extension
58
61
  - extension: file extension (e.g., txt / pdf / docx / rtf), mandatory
59
62
 
60
63
  Example filenames:
61
- - sub-01_ses-01_interview_schizophrenia.rtf
64
+
65
+ - sub-01_interview_schizophrenia.rtf
62
66
  - sub-03_ses-02_fluency_semantic_animals.docx
63
67
 
64
68
  To optimize performance, close other programs and limit GPU usage during language processing.
@@ -75,26 +79,15 @@ Features
75
79
  Examples
76
80
  ========
77
81
 
78
- Here's a detailed usage example:
79
-
80
- .. code-block:: python
81
-
82
- from package_name import SomeClass
83
-
84
- configuration_file = "config_fluency.yml"
85
- pelican.run(configuration_file)
86
-
87
- *Link to config_fluency.yml*
88
-
89
- Sample folder for data collection of the semantic fluency task:
90
- *Link to sample_folder*
82
+ You can find example setups in the [`examples/`](https://github.com/ypauli/PELICAN-nlp/examples) folder.
83
+ ALWAYS change the path to the project folder specified in the configuration file to your specific project location.
91
84
 
92
85
  Contributing
93
86
  ============
94
87
 
95
- Contributions are welcome! Please check out the `contributing guide <https://github.com/ypauli/PELICAN/blob/main/CONTRIBUTING.md>`_.
88
+ Contributions are welcome! Please check out the `contributing guide <https://github.com/ypauli/PELICAN-nlp/blob/main/CONTRIBUTING.md>`_.
96
89
 
97
90
  License
98
91
  =======
99
92
 
100
- This project is licensed under Attribution-NonCommercial 4.0 International. See the `LICENSE <https://github.com/ypauli/PELICAN/blob/main/LICENSE>`_ file for details.
93
+ 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.
@@ -0,0 +1,106 @@
1
+ # Configuration file for discourse protocols
2
+ #=======================================
3
+ input_file: "text" #or 'audio'
4
+ discourse: &discourse_flag true
5
+ #=====================================
6
+
7
+ #general configurations; always adapt
8
+ PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/PyPI_testing_discourse"
9
+ language: "german" # Possibly add options for German and English
10
+
11
+ task_name: "interview" # Give name of task used for creation of the input file (e.g., ['fluency', 'interview'])
12
+ corpus_names:
13
+ - "schizophrenia"
14
+
15
+ metric_to_extract: "embeddings" #Possible options: 'logits' or 'embeddings'
16
+
17
+ number_of_speakers: 3
18
+ subject_speakertag: "B"
19
+ #=========================================================
20
+
21
+ #Optional configurations; Change with preference. However, default settings recommended
22
+ fluency_task: &fluency_flag false
23
+ cleaning_options:
24
+ general_cleaning: true # General cleaning options used for most text preprocessing, default: True.
25
+ remove_brackets_and_bracketcontent: true
26
+ remove_timestamps: true
27
+ timestamp_pattern_example: "#00:00:19-00#"
28
+ remove_punctuation: false
29
+ lowercase: false
30
+ #Options for fluency tasks
31
+ fluency_task: *fluency_flag
32
+ word_splitter: null
33
+ remove_hyphens: null
34
+ remove_duplicates: null
35
+
36
+ options_logits:
37
+ chunk_size: 128
38
+ overlap_size: 64
39
+ tokenization_method: "model"
40
+ #method: "model_instance" # Options: model, regex, nltk, etc.
41
+ model_name: "DiscoResearch/Llama3-German-8B-32k" # Replace with your model instance name
42
+ remove_punctuation: true
43
+ lowercase: true
44
+ keep_speakertags: true
45
+
46
+ options_embeddings:
47
+ tokenization_method: "model_roberta" #or "whitespace", "model"
48
+ max_length: 512 #max sequence length
49
+ model_name: "xlm-roberta-base" #e.g. "fastText", "xlm-roberta-base"
50
+ pytorch_based_model: true
51
+ method: "model_instance"
52
+ remove_punctuation: false
53
+ lowercase: false
54
+ keep_speakertags: true
55
+ clean_embedding_tokens: true
56
+ output_options:
57
+ exclude_special_tokens: true
58
+ remove_'_'_character: true
59
+ remove_speaker_labels: true
60
+ remove_punctuation_and_symbols: true
61
+ remove_brackets_and_content: true
62
+ semantic-similarity: false
63
+ window_size: null
64
+ clean_tokens: false
65
+
66
+ distance-from-randomness: false
67
+ #================================================================================
68
+
69
+ #Extra configurations:
70
+ pipeline_options:
71
+ quality_check: false
72
+ clean_text: true
73
+ tokenize_text: false
74
+ normalize_text: false
75
+
76
+ general_cleaning_options:
77
+ strip_whitespace: true
78
+ merge_multiple_whitespaces: true
79
+ remove_whitespace_before_punctuation: true
80
+ merge_newline_characters: true
81
+ remove_backslashes: true
82
+
83
+ has_multiple_sections: false #evaluated independently
84
+ has_section_titles: false
85
+ section_identification: null #e.g. "Section:", 'null' if file does not have multiple sections, use pattern that is unlikely to appear in rest of transcript
86
+ number_of_sections: null #if 'null' number of sections automatically detected, however, specifying number recommended if known.
87
+
88
+ # Options for extract_embeddings
89
+ window_sizes: [2]
90
+ metric_function: cosine_similarity
91
+ aggregation_functions: mean_of_means
92
+
93
+ normalization_options:
94
+ method: "lemmatization" #Options: lemmatization or stemming
95
+ #================================================================
96
+
97
+ #Detail configurations; Changes optional, mostly used for quality checking / error handling
98
+ number_of_subjects: null # Specify number of subjects; if 'null', number of subjects is automatically detected
99
+ multiple_sessions: false # Set to True if multiple sessions per subject
100
+
101
+ recompute_everything: true #If set to 'false' pelican-nlp will try to reuse previously computed results stored on your drive
102
+
103
+ create_aggregation_of_results: false
104
+ output_document_information: false
105
+
106
+
@@ -0,0 +1,40 @@
1
+ {\rtf1\ansi\deff3\adeflang1025
2
+ {\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Liberation Serif{\*\falt Times New Roman};}{\f4\froman\fprq2\fcharset0 Arial;}{\f5\froman\fprq2\fcharset0 Liberation Sans{\*\falt Arial};}{\f6\fnil\fprq2\fcharset0 Noto Sans CJK SC;}{\f7\fnil\fprq2\fcharset0 0;}{\f8\fnil\fprq2\fcharset0 Noto Sans Devanagari;}}
3
+ {\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
4
+ {\stylesheet{\s0\snext0\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\nowidctlpar\hyphpar1\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052 Normal;}
5
+ {\*\cs15\snext15 Footnote Characters;}
6
+ {\*\cs16\snext16\rtlch\ab \ltrch\loch\b Strong;}
7
+ {\s17\sbasedon0\snext18\rtlch\af8\afs28\alang1081 \ltrch\lang1033\langfe2052\hich\af5\loch\ql\nowidctlpar\hyphpar1\sb240\sa120\keepn\ltrpar\cf0\f5\fs28\lang1033\kerning1\dbch\af6\langfe2052 Heading;}
8
+ {\s18\sbasedon0\snext18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052 Body Text;}
9
+ {\s19\sbasedon18\snext19\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052 List;}
10
+ {\s20\sbasedon0\snext20\rtlch\af8\afs24\alang1081\ai \ltrch\lang1033\langfe2052\hich\af3\loch\ql\nowidctlpar\hyphpar1\sb120\sa120\ltrpar\cf0\f3\fs24\lang1033\i\kerning1\dbch\af7\langfe2052 Caption;}
11
+ {\s21\sbasedon0\snext21\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\nowidctlpar\hyphpar1\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052 Index;}
12
+ }{\*\generator LibreOffice/24.2.7.2$Linux_X86_64 LibreOffice_project/420$Build-2}{\info{\title 648866ebdbd870441d179a92}{\author Thomas Luthi-Bhatti}{\creatim\yr2023\mo6\dy14\hr17\min6}{\revtim\yr2025\mo4\dy8\hr13\min51}{\printim\yr0\mo0\dy0\hr0\min0}}{\*\userprops{\propname Operator}\proptype30{\staticval Ulrike Rachner}}\deftab720
13
+ \hyphauto1\viewscale100\formshade\paperh16838\paperw11906\margl1417\margr1417\margt1417\margb1398\sectd\sbknone\sftnnar\saftnnrlc\sectunlocked1\pgwsxn11906\pghsxn16838\marglsxn1417\margrsxn1417\margtsxn1417\margbsxn1398\ftnbj\ftnstart1\ftnrestart\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
14
+ {\*\ftnsep\chftnsep}\pgndec\pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052\sl100\slmult0\qc\hyphpar0\fi0\li0\lin0\ri0\rin0\sb238\sa0{\hich\af4\loch\cs16\rtlch\ab \ltrch\loch\b\fs22\lang1031\f4\loch
15
+ Interview with Interviewee}
16
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052\sl100\slmult0\qc\hyphpar0\fi0\li0\lin0\ri0\rin0\sb238\sa0\loch
17
+
18
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
19
+ I: Das ist f\u252\'fcr mich. Ich m\u246\'f6chte, dass Sie \u252\'fcber ein paar Dinge aus Ihrem t\u228\'e4glichen Leben sprechen. Sie m\u252\'fcssen (keinerlei?) Namen nennen, w\u228\'e4hrend Sie dieses Ereignis beschreiben. K\u246\'f6nnen Sie mir ein wenig \u252\'fcber sich erz\u228\'e4hlen? #00:00:14-00#\line B: (In Schriftsprache.) Ja, nat\u252\'fcrlich. Jeden Morgen beginne ich den Tag mit einer Tasse Tee. Ich bin jemand, der viel Wert auf eine ruhige Morgenroutine legt. Es ist f\u252\'fcr mich sehr wichtig, dass der Start in den Tag entspannt und nicht hektisch ist. Oft lese ich auch ein paar Seiten in einem Buch, das ich gerade lese. Danach gehe ich meistens zur Arbeit, entweder ins B\u252\'fcro oder arbeite von zu Hause aus. Mein Job ist sehr abwechslungsreich, und es gef\u228\'e4llt mir, immer neue Herausforderungen zu haben. Am Nachmittag gehe ich oft spazieren oder treffe mich mit Freunden. Ein gutes Gespr\u228\'e4ch oder eine kleine Wanderung in der Natur tut mir immer sehr gut. Am Abend koche ich gerne etwas Leckeres und entspanne mich beim Fernsehen oder h\u246\'f6re Musik. #00:00:51-00#}
20
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
21
+ I: Wenn Sie zur\u252\'fcckdenken, k\u246\'f6nnen Sie mir eine Geschichte \u252\'fcber etwas Wichtiges erz\u228\'e4hlen, das in Ihrem Leben passiert ist? Die Geschichte kann aus einer beliebigen Zeit Ihres Lebens stammen, aus Ihrer Kindheit oder auch vor Kurzem. Sie brauchen keine Namen zu nennen, wenn Sie dieses Ereignis beschreiben. #00:04:19-00#\line B: Ich erinnere mich an eine Zeit, als ich mit meiner Familie in einem kleinen Dorf auf einem Berg war. Es war ein Winterwochenende, und wir hatten viel Schnee. An diesem Tag sind wir alle zusammen mit Schlitten den Hang hinuntergefahren. Es war eine sehr lustige Erfahrung, weil wir alle wie Kinder waren, trotz des Alters. Aber was mir wirklich in Erinnerung geblieben ist, war, dass ich mich nach diesem Tag viel n\u228\'e4her mit meiner Familie verbunden f\u252\'fchlte. Es war ein Moment, in dem wir uns alle unterst\u252\'fctzt und gemeinsam gelacht haben, was damals sehr wichtig f\u252\'fcr mich war. Diese Momente mit der Familie sind f\u252\'fcr mich unersetzlich. #00:05:42-00#}
22
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
23
+ I: Ich m\u246\'f6chte Sie nun bitten, dass Sie ein wenig \u252\'fcber Ihre Gesundheit sprechen. Sie brauchen keine Namen zu nennen. Glauben Sie, dass Sie eine psychische Krankheit haben? Und wenn ja, worum handelt es sich Ihrer Meinung nach? #00:06:03-00#\line B: In letzter Zeit habe ich mich mehr mit meiner mentalen Gesundheit besch\u228\'e4ftigt. Ich w\u252\'fcrde sagen, dass ich in einer stabilen psychischen Verfassung bin, aber es gibt Momente, in denen ich mich \u252\'fcberfordert f\u252\'fchle. Gerade in stressigen Phasen merke ich, dass es schwieriger f\u252\'fcr mich ist, den Kopf klar zu behalten. Aber ich versuche, mir Hilfe zu suchen und achte sehr darauf, auf mich selbst zu h\u246\'f6ren. Es gibt Phasen, in denen ich das Gef\u252\'fchl habe, dass ich eine kurze Auszeit brauche, um mich wieder zu sortieren. Aber insgesamt denke ich, dass ich psychisch gesund bin, solange ich mir genug Zeit f\u252\'fcr mich nehme. #00:06:48-00#}
24
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
25
+ I: Und wurde Ihnen eine Diagnose gestellt? #00:07:03-00#\line B: Nein, bisher nicht. #00:07:04-00#}
26
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
27
+ I: Danke. Okay. Ich werde Ihnen jetzt drei Bilder zeigen, und eins nach dem anderen. Jedes Mal, wenn ich das Bild vor Sie lege, m\u246\'f6chte ich Sie bitten, das Bild so vollst\u228\'e4ndig wie m\u246\'f6glich zu beschreiben. Sagen Sie mir, was Sie auf dem Bild sehen und was Ihrer Meinung nach passieren k\u246\'f6nnte. Bitte sprechen Sie, bis ich Stopp sage. (...) Bild Nummer zwei. Bitte sagen Sie, was Sie auf diesem Bild sehen. #00:09:10-00#\line B: (Startet in Schriftsprache.) Auf diesem Bild sieht man eine Gruppe von Personen, die auf einem Markt stehen. Es ist ein lebhafter Ort, mit vielen St\u228\'e4nden und bunten Waren. In der Mitte sieht man eine \u228\'e4ltere Frau, die gerade eine Melone ausw\u228\'e4hlt. Sie tr\u228\'e4gt eine einfache, aber stilvolle Kleidung. Links sieht man einen jungen Mann, der mit einem Verk\u228\'e4ufer spricht, der gerade Tomaten in eine T\u252\'fcte packt. Im Hintergrund sieht man weitere Marktst\u228\'e4nde, die mit Obst und Gem\u252\'fcse voll sind. Der Himmel ist bew\u246\'f6lkt, und es sieht aus, als w\u252\'fcrde es bald regnen. Es scheint ein sch\u246\'f6ner, aber auch sehr besch\u228\'e4ftigter Tag zu sein. #00:10:37-00#}
28
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
29
+ I: Danke sch\u246\'f6n. Bild Nummer vier. Was passiert auf diesem Bild? Oder was sehen Sie auf diesem Bild? #00:10:46-00#\line B: Auf diesem Bild sieht man einen Mann und eine Frau, die zusammen auf einer Bank sitzen. Der Mann ist in einem Anzug und schaut auf sein Handy. Die Frau tr\u228\'e4gt ein sommerliches Kleid und schaut nachdenklich in die Ferne. Sie scheint in einer anderen Welt zu sein, w\u228\'e4hrend der Mann abgelenkt ist. Im Hintergrund ist ein Park zu sehen, mit B\u228\'e4umen und einem kleinen See. Die Stimmung wirkt ein bisschen melancholisch, als ob beide Menschen in Gedanken versunken sind. Es scheint, als ob sie ein Gespr\u228\'e4ch f\u252\'fchren, aber jeder ist in seiner eigenen Welt. #00:12:00-00#}
30
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
31
+ I: Danke sch\u246\'f6n. Und Bild Nummer 17GF, was sehen Sie auf diesem Bild? #00:12:09-00#\line B: Auf diesem Bild sieht man einen alten Leuchtturm, der auf einem Felsen \u252\'fcber dem Meer thront. Der Himmel ist dramatisch, mit dunklen Wolken und einer Art Sturmstimmung. Das Meer ist unruhig und st\u252\'fcrmisch, und man sieht die Wellen gegen den Felsen schlagen. In der N\u228\'e4he des Leuchtturms ist ein kleiner, alter Kutter zu sehen, der versucht, gegen die Wellen anzukommen. Es wirkt wie eine dramatische Szene, bei der der Leuchtturm als Rettungsanker in dieser st\u252\'fcrmischen See dient. Der Leuchtturm strahlt ein warmes Licht aus, das den Kutter zu f\u252\'fchren scheint. #00:13:23-00#}
32
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
33
+ I: Danke. Gut, ich werde Ihnen nun einige Bilder aus einer Geschichte zeigen. Sie k\u246\'f6nnen sich so viel Zeit nehmen, wie Sie brauchen, um die Bilder anzuschauen. Nachdem Sie alle Bilder der Reihe nach angesehen haben, m\u246\'f6chte ich Sie bitten, mir die Geschichten auf den Bildern in Ihren eigenen Worten zu erz\u228\'e4hlen. Das ist die Geschichte. #00:13:47-00#\line B: Ich habe in der Kindheit oft getr\u228\'e4umt, dass ich in einem Wald unterwegs war. #00:15:59-00#}
34
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
35
+ I: Im Wald? #00:15:56-00#\line B: Ja, genau. Ich war als Kind oft drau\u223\'dfen in den W\u228\'e4ldern, und in meinen Tr\u228\'e4umen bin ich immer tiefer in den Wald gegangen. Eines Tages kam ich an einen kleinen Bach, der durch den Wald floss. Der Bach war klar und das Wasser funkelte im Sonnenlicht. Ich sa\u223\'df dort und beobachtete die Fische, die durch das Wasser schwammen. Es war sehr ruhig, und ich f\u252\'fchlte mich v\u246\'f6llig friedlich. In diesem Moment hatte ich das Gef\u252\'fchl, dass ich ein Teil der Natur war und mit der Welt um mich herum eins. Es war ein sch\u246\'f6ner, friedlicher Traum, der mir auch als Erwachsener oft in den Sinn kommt. #00:16:44-00#}
36
+ \par \pard\plain \s18\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\sl276\slmult1\nowidctlpar\hyphpar1\sb0\sa140\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052{\loch
37
+ I: Gut. Jetzt haben Sie eine Minute Zeit, um den Text durchzugehen, danach bitte ich Sie, das Blatt wegzulegen und mir die Geschichte in eigenen Worten zu erz\u228\'e4hlen. #00:17:51-00#\line B: Okay. #00:17:52-00#\line (Stille. B liest. #00:17:52-00# - #00:19:13-00#)\line B: (in Schriftsprache.) Die Geschichte handelt von einer kleinen Katze, die an einem sehr hei\u223\'dfen Tag im Schatten eines Baumes schl\u228\'e4ft. Sie tr\u228\'e4umt von einem k\u252\'fchlen Teich, an dem sie trinken kann. Als sie aufwacht, ist der Teich nicht mehr weit, und die Katze folgt einem Schmetterling, der sie zu einem geheimen, versteckten Ort f\u252\'fchrt. Der Teich ist klar, und die Katze kann endlich ihren Durst l\u246\'f6schen. Sie ist sehr zufrieden und kehrt sp\u228\'e4ter zur\u252\'fcck zu ihrem Baum, um sich wieder auszuruhen. #00:20:09-00#\line I: Danke sch\u246\'f6n.}
38
+ \par \pard\plain \s0\rtlch\af8\afs24\alang1081 \ltrch\lang1033\langfe2052\hich\af3\loch\ql\nowidctlpar\hyphpar1\ltrpar\cf0\f3\fs24\lang1033\kerning1\dbch\af7\langfe2052\sl100\slmult0\qc\hyphpar0\fi0\li0\lin0\ri0\rin0\sb238\sa0\loch
39
+
40
+ \par }
@@ -0,0 +1,108 @@
1
+ # Configuration file for fluency task
2
+ # =======================================
3
+ input_file: "text" #or 'audio'
4
+ fluency_task: &fluency_flag true
5
+ #========================================
6
+
7
+ #general configurations; always adapt
8
+ PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/pelican_testing"
9
+ language: "german"
10
+ multiple_sessions: &session_flag false
11
+
12
+ corpus_names: #names of fluency tasks (e.g. "animals", "clothes")
13
+ - "animals"
14
+ - "clothes"
15
+ - "food"
16
+
17
+ #Specify linguistic metrics to extract
18
+ metric_to_extract: 'embeddings' #Possible options: 'embeddings', 'logits'
19
+ output_document_information: true
20
+ #====================================================================
21
+
22
+ #Optional configurations; Change with preference. However, default settings recommended
23
+ cleaning_options:
24
+ general_cleaning: true
25
+ #Options for fluency tasks
26
+ fluency_task: *fluency_flag
27
+ word_splitter: ';' #default split with ',' add different word_splitter if necessary
28
+ remove_hyphens: true
29
+ remove_duplicates: false
30
+ lowercase: false
31
+ #Optional cleaning
32
+ remove_brackets_and_bracketcontent: false #default 'false'
33
+ remove_timestamps: false #default 'false'
34
+ timestamp_pattern_example: null #e.g. "#00:00:23-00#"
35
+ remove_punctuation: false #Careful!: If set to true word_splitter might be removed
36
+
37
+ options_embeddings:
38
+ tokenization_method: "whitespace" #or "model"
39
+ model_name: "fastText" #e.g. "fastText", "xlm-roberta-base"
40
+ pytorch_based_model: false
41
+ method: "model_instance"
42
+ max_length: null
43
+ clean_embedding_tokens: true
44
+
45
+ semantic-similarity: true
46
+ distance-from-randomness: false
47
+
48
+ options_dis_from_randomness:
49
+ window_size: 8
50
+ min_len: null
51
+ bootstrap: 10000
52
+ shuffle_mode: 'include0_includeN'
53
+ parallel_computing: false #not yet set up
54
+
55
+ options_semantic-similarity:
56
+ window_sizes: #'all' or window size as integer
57
+ - 2
58
+ - 8
59
+ #==================================================================
60
+
61
+ #Extra configurations;
62
+ task_name: "fluency"
63
+ create_aggregation_of_results: true
64
+
65
+ pipeline_options:
66
+ quality_check: false
67
+ clean_text: true
68
+ tokenize_text: false
69
+ normalize_text: false
70
+
71
+ general_cleaning_options:
72
+ strip_whitespace: true
73
+ merge_multiple_whitespaces: true
74
+ remove_whitespace_before_punctuation: true
75
+ merge_newline_characters: true
76
+ remove_backslashes: true
77
+
78
+ has_multiple_sections: false
79
+ has_section_titles: false
80
+ section_identification: null
81
+ number_of_sections: 1
82
+ number_of_speakers: 1
83
+ discourse: false
84
+
85
+ document_information_output:
86
+ parameters:
87
+ - subject_ID
88
+ - fluency_word_count
89
+ - fluency_duplicate_count
90
+
91
+ #================================================================
92
+
93
+ #Detail configurations; Changes optional, mostly used for quality checking / error handling
94
+ recompute_everything: true
95
+ number_of_subjects: null
96
+
97
+ # Filename components configuration
98
+ filename_components:
99
+ subject: true # mandatory
100
+ session: *session_flag
101
+ task: true # mandatory
102
+ task_addition: false
103
+ corpus: true # typically true for fluency tasks (e.g., "animals", "clothes")
104
+ metric: true
105
+ additional_tags: []
106
+
107
+
108
+
@@ -0,0 +1 @@
1
+ Ameise; Affe; Bär; Chamäleon; Delphin; Dachs; Drossel; Elch; Esel; Eichhörnchen; Einhorn; Flunder; Giraffe; Gans; Ente; Hahn; Jaguar; Igel; Kanguru; Kamel; Lachs; Luchs
@@ -0,0 +1 @@
1
+ Socke; Wanderschuh; Sneaker; Jeans; Rock; Jupe; Strumpfhose; Lange Unterhose; Normale Unterhose; String; Tanga; Shirt; Unterhemd; Bluse; Jackett; Blazer; Pullover; Hoodie; Jacke; Winterjacke; Skihose; Hut; Cap; Leggings
@@ -0,0 +1 @@
1
+ Apfel; Birne; Mandarine; Clementine; Ananas; Granatapfel; Brot; Fisch; Fleisch; Milch; Müsli; Haferflocken; Nüsse; Spaghetti; Tomatensauce; Tomaten; Broccoli; Blumenkohl; Lauch; Zucchetti; Pepperoni; Zucchini; Tofu; Fleisch; Fleischersatz; Pizza; Mozzarella; Käse; Parmesan; Nutella; Butter
@@ -0,0 +1 @@
1
+ Hund; Katze; Maus; Bär; Krokodil; Pferd; Hase; Jaguar; Tiger; Löwe; Huhn; Känguru; Puma; Vogel; Eichhörnchen; Pferd; Eisbär; Biene; Fliege; Käfer; Spinne; Mücke; Krähe
@@ -0,0 +1 @@
1
+ Turnschuhe; Sandalen; Stiefel; Ballerinas; Flipflops; Hose; Leggings; Shorts; Bermuda; Unterhose; Shirt; Sweatshirt; Pulli; Halskragenpullover; Hemd; Bluse; Jacke; Blazer; Lederjacke; Jeansjacke; Mantel; Hut; Stuck; Ohrring; Mütze; Schal; Handschuhe; Body; BH; Unterleib; Strumpfhosen; Socken
@@ -0,0 +1 @@
1
+ Salat; Gurke; Tomate; Zwiebel; Frühlingszwiebel; Radieschen; Paprika; Zucchini; Aubergine; Pilze; Sellerie; Banane; Apfel; Erdbeere; Kirsche; Trauben; Himbeeren; Heidelbeeren; Blaubeeren; Erdbeeren; Ananas; Zitrone; Avocado; Kaki; Milch; Joghurt; Käse; Hüttenkäse; Eier; Fisch; Forelle; Lachs; Branzino; Kerne; Pinienkerne
@@ -0,0 +1,136 @@
1
+ # Master Configuration File
2
+ # ========================
3
+
4
+ # Basic Settings
5
+ # -------------
6
+ input_file: "text" # Options: 'text' or 'audio'
7
+ PATH_TO_PROJECT_FOLDER: "/home/yvespauli/PycharmProjects/PyPI_testing_image-descriptions"
8
+ language: "german" # Options: 'german', 'english'
9
+ recompute_everything: true # If false, reuses previously computed results
10
+
11
+ # Task Configuration
12
+ # -----------------
13
+ task_name: "image-description" # Options: 'fluency', 'interview'
14
+ fluency_task: &fluency_flag false # Flag for fluency-specific settings
15
+ discourse: &discourse_flag false # Flag for discourse-specific settings
16
+ corpus_names: # List of task corpora
17
+ - "placebo"
18
+ - "drug"
19
+
20
+ # Session and Subject Settings
21
+ # --------------------------
22
+ multiple_sessions: true
23
+ number_of_subjects: null # If null, auto-detected
24
+ number_of_speakers: 1
25
+ subject_speakertag: null # Speaker tag for subject (e.g., "B")
26
+
27
+ # Document Structure
28
+ # ----------------
29
+ has_multiple_sections: true
30
+ has_section_titles: true
31
+ section_identification: "Bild:" # e.g., "Section:"
32
+ number_of_sections: null # If null, auto-detected
33
+
34
+ # Processing Pipeline
35
+ # -----------------
36
+ pipeline_options:
37
+ quality_check: false
38
+ clean_text: true
39
+ tokenize_text: false
40
+ normalize_text: false
41
+
42
+ # Metric Extraction
43
+ # ---------------
44
+ metric_to_extract: "embeddings" # Options: 'embeddings', 'logits'
45
+ extract_logits: null
46
+ extract_embeddings: true
47
+
48
+ # Cleaning Options
49
+ # --------------
50
+ cleaning_options:
51
+ general_cleaning: true
52
+ remove_punctuation: false
53
+ lowercase: false
54
+ remove_brackets_and_bracketcontent: true
55
+ remove_timestamps: false
56
+ timestamp_pattern_example: null # e.g., "#00:00:23-00#"
57
+ # Fluency-specific options
58
+ fluency_task: *fluency_flag
59
+ word_splitter: ';'
60
+ remove_hyphens: false
61
+ remove_duplicates: false
62
+
63
+ general_cleaning_options:
64
+ strip_whitespace: true
65
+ merge_multiple_whitespaces: true
66
+ remove_whitespace_before_punctuation: true
67
+ merge_newline_characters: true
68
+ remove_backslashes: true
69
+
70
+ # Embedding Options
71
+ # ---------------
72
+ options_embeddings:
73
+ tokenization_method: "model_roberta" #or "whitespace", "model"
74
+ max_length: 512 #max sequence length
75
+ model_name: "xlm-roberta-base" #e.g. "fastText", "xlm-roberta-base"
76
+ pytorch_based_model: true
77
+ method: "model_instance"
78
+ max_length: 512
79
+ clean_embedding_tokens: true
80
+ remove_punctuation: false
81
+ lowercase: false
82
+ keep_speakertags: false
83
+ semantic-similarity: false
84
+ window_size: null
85
+ clean_tokens: true
86
+ distance-from-randomness: false
87
+ output_options:
88
+ exclude_special_tokens: true
89
+ remove_'_'_character: true
90
+ remove_speaker_labels: true
91
+ remove_punctuation_and_symbols: true
92
+ remove_brackets_and_content: true
93
+
94
+ # Logits Options
95
+ # -------------
96
+ options_logits:
97
+ chunk_size: 128
98
+ overlap_size: 64
99
+ tokenization_method: "model"
100
+ model_name: "DiscoResearch/Llama3-German-8B-32k"
101
+ remove_punctuation: true
102
+ lowercase: true
103
+ keep_speakertags: true
104
+
105
+ # Analysis Options
106
+ # --------------
107
+ options_semantic-similarity:
108
+ window_sizes: # 'all' or window size as integer
109
+ - 2
110
+ - 8
111
+
112
+ options_dis_from_randomness:
113
+ window_size: 8
114
+ min_len: null
115
+ bootstrap: 10000
116
+ shuffle_mode: 'include0_includeN'
117
+ parallel_computing: false
118
+
119
+ # Normalization Options
120
+ # -------------------
121
+ normalization_options:
122
+ method: "lemmatization" # Options: 'lemmatization', 'stemming'
123
+
124
+ # Filename Configuration
125
+ # --------------------
126
+ filename_components:
127
+ subject: true # mandatory
128
+ session: false
129
+ task: true # mandatory
130
+ task_addition: false
131
+ corpus: true
132
+ metric: true
133
+ additional_tags: []
134
+
135
+ create_aggregation_of_results: false
136
+ output_document_information: false
File without changes