speechmetryflow 0.2.3__tar.gz → 0.2.4__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 (35) hide show
  1. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/PKG-INFO +1 -1
  2. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/_version.py +2 -2
  3. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/utils.py +4 -1
  4. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/.gitignore +0 -0
  5. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/LICENSE +0 -0
  6. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/README.md +0 -0
  7. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/pyproject.toml +0 -0
  8. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/__init__.py +0 -0
  9. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/cli.py +0 -0
  10. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/__init__.py +0 -0
  11. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/assets/__init__.py +0 -0
  12. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/assets/concreteness.tsv +0 -0
  13. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/assets/familiarity_imageability.tsv +0 -0
  14. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/assets/frequency.tsv +0 -0
  15. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/assets/valence.tsv +0 -0
  16. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/database.py +0 -0
  17. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/part_of_speech.py +0 -0
  18. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/lexical/utils.py +0 -0
  19. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/pragmatic/__init__.py +0 -0
  20. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/pragmatic/assets.py +0 -0
  21. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/pragmatic/database.py +0 -0
  22. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/semantic/__init__.py +0 -0
  23. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/semantic/assets.py +0 -0
  24. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/semantic/icu.py +0 -0
  25. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/semantic/idea_density.py +0 -0
  26. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/speech_production/__init__.py +0 -0
  27. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/speech_production/assets/__init__.py +0 -0
  28. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/speech_production/assets/words_fr.json +0 -0
  29. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/speech_production/fluency.py +0 -0
  30. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/speech_production/fragment.py +0 -0
  31. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/syntactic/__init__.py +0 -0
  32. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/syntactic/assets.py +0 -0
  33. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/syntactic/dependency.py +0 -0
  34. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/syntactic/sentences.py +0 -0
  35. {speechmetryflow-0.2.3 → speechmetryflow-0.2.4}/speechmetryflow/ucsf_disfluency/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: speechmetryflow
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Python module to extract text metrics for speechmetryflow pipeline
5
5
  Project-URL: Documentation, https://lingualab.github.io/speechmetryflow/
6
6
  Project-URL: Issues, https://github.com/lingualab/speechmetryflow/issues
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.2.3'
32
- __version_tuple__ = version_tuple = (0, 2, 3)
31
+ __version__ = version = '0.2.4'
32
+ __version_tuple__ = version_tuple = (0, 2, 4)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -14,11 +14,14 @@ def general_cleaning(raw_text: str) -> str:
14
14
  Returns:
15
15
  str: Cleaned up text
16
16
  """
17
+ # Replace wrong apostrophes with correct ones
18
+ content = content.replace("’", "'")
19
+
17
20
  # Removes content between square brackets ([...])
18
21
  text = re.sub(r"\[.*?\]", "", raw_text)
19
22
 
20
23
  # Removes punctuation, keeping letters, apostrophes, spaces, periods, and question marks
21
- text = re.sub(r"[^\w\’ \.\?]", "", text)
24
+ text = re.sub(r"[^\w\' \.\?]", "", text)
22
25
 
23
26
  # Removes periods following a space
24
27
  text = re.sub(r"\s\.", "", text)
File without changes