paralex 2.2.0__tar.gz → 2.2.3__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 (56) hide show
  1. {paralex-2.2.0 → paralex-2.2.3}/PKG-INFO +31 -6
  2. {paralex-2.2.0 → paralex-2.2.3}/README.md +79 -63
  3. {paralex-2.2.0 → paralex-2.2.3}/paralex/__init__.py +9 -9
  4. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/advanced-metadata.md +311 -311
  5. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/changelog.md +48 -48
  6. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/css/extra.css +72 -72
  7. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/datasets.md +48 -27
  8. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/examples.md +101 -101
  9. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/faq.md +275 -275
  10. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/index.md +32 -32
  11. paralex-2.2.3/paralex/docs/known-datasets.csv +19 -0
  12. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/language_stats.csv +30 -30
  13. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/long-form.md +105 -105
  14. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/mapframe.html +259 -259
  15. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/principles.md +52 -52
  16. paralex-2.2.3/paralex/docs/result.geojson +1 -0
  17. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/specs.md +545 -549
  18. paralex-2.2.3/paralex/docs/specs.md.orig +554 -0
  19. paralex-2.2.3/paralex/docs/specs.pdf +0 -0
  20. paralex-2.2.3/paralex/docs/specs.tex +1350 -0
  21. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/standard.md +714 -714
  22. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/tutorial.md +240 -240
  23. paralex-2.2.3/paralex/explorer.py +226 -0
  24. {paralex-2.2.0 → paralex-2.2.3}/paralex/gendoc.py +187 -305
  25. paralex-2.2.3/paralex/main.py +79 -0
  26. {paralex-2.2.0 → paralex-2.2.3}/paralex/meta.py +286 -286
  27. {paralex-2.2.0 → paralex-2.2.3}/paralex/standard/files_spec.json +242 -242
  28. {paralex-2.2.0 → paralex-2.2.3}/paralex/standard/package_spec.json +57 -57
  29. {paralex-2.2.0 → paralex-2.2.3}/paralex/standard/paralex.package.json +1330 -1330
  30. paralex-2.2.3/paralex/standard/paralex.package.json.orig +1341 -0
  31. {paralex-2.2.0 → paralex-2.2.3}/paralex/templates/package.md +22 -22
  32. {paralex-2.2.0 → paralex-2.2.3}/paralex/templates/resource.md +42 -42
  33. {paralex-2.2.0 → paralex-2.2.3}/paralex/utils.py +55 -55
  34. {paralex-2.2.0 → paralex-2.2.3}/paralex/validate.py +548 -548
  35. {paralex-2.2.0 → paralex-2.2.3}/paralex.egg-info/PKG-INFO +31 -6
  36. {paralex-2.2.0 → paralex-2.2.3}/paralex.egg-info/SOURCES.txt +7 -0
  37. {paralex-2.2.0 → paralex-2.2.3}/paralex.egg-info/entry_points.txt +0 -1
  38. {paralex-2.2.0 → paralex-2.2.3}/paralex.egg-info/requires.txt +2 -1
  39. {paralex-2.2.0 → paralex-2.2.3}/setup.cfg +3 -2
  40. paralex-2.2.0/paralex/main.py +0 -37
  41. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/graph-paralex.png +0 -0
  42. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/metadata.md +0 -0
  43. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/owl2html.xsl +0 -0
  44. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/paralex.png +0 -0
  45. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/paralex_blk.png +0 -0
  46. {paralex-2.2.0 → paralex-2.2.3}/paralex/docs/paralex_ontology.xml +0 -0
  47. {paralex-2.2.0 → paralex-2.2.3}/paralex/markdown.py +0 -0
  48. {paralex-2.2.0 → paralex-2.2.3}/paralex/paths.py +0 -0
  49. {paralex-2.2.0 → paralex-2.2.3}/paralex/standard/columns_spec.json +0 -0
  50. {paralex-2.2.0 → paralex-2.2.3}/paralex/standard/data_sheet.md +0 -0
  51. {paralex-2.2.0 → paralex-2.2.3}/paralex/strategies.py +0 -0
  52. {paralex-2.2.0 → paralex-2.2.3}/paralex/templates/__init__.py +0 -0
  53. {paralex-2.2.0 → paralex-2.2.3}/paralex/templates/field.md +0 -0
  54. {paralex-2.2.0 → paralex-2.2.3}/paralex.egg-info/dependency_links.txt +0 -0
  55. {paralex-2.2.0 → paralex-2.2.3}/paralex.egg-info/top_level.txt +0 -0
  56. {paralex-2.2.0 → paralex-2.2.3}/setup.py +0 -0
@@ -1,17 +1,27 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: paralex
3
- Version: 2.2.0
3
+ Version: 2.2.3
4
4
  Summary: Standard for lexicons of inflected paradigms
5
- Home-page: UNKNOWN
6
5
  Author: Sacha Beniamine
7
- License: UNKNOWN
8
- Platform: UNKNOWN
9
6
  Classifier: Operating System :: OS Independent
10
7
  Classifier: Programming Language :: Python :: 3
11
8
  Classifier: Topic :: Software Development :: Libraries
12
- Requires-Python: >=3.7
9
+ Requires-Python: >=3.9
13
10
  Description-Content-Type: text/markdown
11
+ Requires-Dist: pandas>=2.0.3
12
+ Requires-Dist: frictionless>=5.18.0
13
+ Requires-Dist: colorama
14
+ Requires-Dist: python-slugify
15
+ Requires-Dist: hypothesis
16
+ Requires-Dist: python-iso639
17
+ Requires-Dist: pybtex
18
+ Requires-Dist: met_brewer
19
+ Requires-Dist: openscm-zenodo>=0.3.1
14
20
  Provides-Extra: docs
21
+ Requires-Dist: mkdocs>=1.1.2; extra == "docs"
22
+ Requires-Dist: mkdocs-material; extra == "docs"
23
+ Requires-Dist: mkdocs-include-markdown-plugin; extra == "docs"
24
+ Requires-Dist: mkdocs-table-reader-plugin; extra == "docs"
15
25
 
16
26
  # Paralex: lexicons of morphological paradigms
17
27
 
@@ -57,6 +67,22 @@ For a detailed report on frictionless metadata, do:
57
67
  frictionless validate <mypackagename>.package.json
58
68
  ~~~
59
69
 
70
+ # Accessing datasets
71
+
72
+ Available datasets in the Zenodo community:
73
+
74
+ ~~~
75
+ paralex list
76
+ ~~~
77
+
78
+ Download a dataset and extract the .zip archive:
79
+
80
+ ~~~
81
+ paralex get <ZENODO_ID>
82
+ ~~~
83
+
84
+ The Zenodo ID can be found with the `paralex list` command.
85
+
60
86
  # Serving the paralex site
61
87
 
62
88
  First, build the standard package from files:
@@ -76,4 +102,3 @@ Third, use mkdocs (which needs to be installed) to build this site:
76
102
  ~~~
77
103
  mkdocs serve
78
104
  ~~~
79
-
@@ -1,63 +1,79 @@
1
- # Paralex: lexicons of morphological paradigms
2
-
3
- [Paralex](https://www.paralex-standard.org) is a standard for morphological lexicons which document inflectional paradigms.
4
-
5
- This package contains:
6
- - The paralex specification
7
- - The full documentation
8
- - Utilities to generate metadata and to validate paralex lexicons
9
-
10
- # Generating metadata
11
-
12
- To generate paralex metadata (more in the docs):
13
-
14
-
15
- ```python title="gen-metadata.py"
16
- from paralex import paralex_factory
17
-
18
- package = paralex_factory("Vulcan Verbal Paradigms",
19
- {
20
- "forms": {"path": "vulcan_v_forms.csv"},
21
- }
22
- )
23
- package.to_json("vulcan.package.json")
24
- ```
25
-
26
- The package returned is a [frictionless Package object](https://framework.frictionlessdata.io/docs/framework/package.html) and can be manipulated as such as needed.
27
-
28
-
29
- # Validation of paralex datasets
30
-
31
- To validate a paralex lexicon:
32
-
33
- ~~~
34
- paralex validate <mypackagename>.package.json
35
- ~~~
36
-
37
- This checks that the data is valid using frictionless, as well as a number of statements to match the paralex standard.
38
- For a detailed report on frictionless metadata, do:
39
-
40
-
41
- ~~~
42
- frictionless validate <mypackagename>.package.json
43
- ~~~
44
-
45
- # Serving the paralex site
46
-
47
- First, build the standard package from files:
48
-
49
- ~~~
50
- paralex make_standard
51
- ~~~
52
-
53
- Second, build the specs files from the standard package:
54
-
55
- ~~~
56
- paralex make_doc
57
- ~~~
58
-
59
- Third, use mkdocs (which needs to be installed) to build this site:
60
-
61
- ~~~
62
- mkdocs serve
63
- ~~~
1
+ # Paralex: lexicons of morphological paradigms
2
+
3
+ [Paralex](https://www.paralex-standard.org) is a standard for morphological lexicons which document inflectional paradigms.
4
+
5
+ This package contains:
6
+ - The paralex specification
7
+ - The full documentation
8
+ - Utilities to generate metadata and to validate paralex lexicons
9
+
10
+ # Generating metadata
11
+
12
+ To generate paralex metadata (more in the docs):
13
+
14
+
15
+ ```python title="gen-metadata.py"
16
+ from paralex import paralex_factory
17
+
18
+ package = paralex_factory("Vulcan Verbal Paradigms",
19
+ {
20
+ "forms": {"path": "vulcan_v_forms.csv"},
21
+ }
22
+ )
23
+ package.to_json("vulcan.package.json")
24
+ ```
25
+
26
+ The package returned is a [frictionless Package object](https://framework.frictionlessdata.io/docs/framework/package.html) and can be manipulated as such as needed.
27
+
28
+
29
+ # Validation of paralex datasets
30
+
31
+ To validate a paralex lexicon:
32
+
33
+ ~~~
34
+ paralex validate <mypackagename>.package.json
35
+ ~~~
36
+
37
+ This checks that the data is valid using frictionless, as well as a number of statements to match the paralex standard.
38
+ For a detailed report on frictionless metadata, do:
39
+
40
+
41
+ ~~~
42
+ frictionless validate <mypackagename>.package.json
43
+ ~~~
44
+
45
+ # Accessing datasets
46
+
47
+ Available datasets in the Zenodo community:
48
+
49
+ ~~~
50
+ paralex list
51
+ ~~~
52
+
53
+ Download a dataset and extract the .zip archive:
54
+
55
+ ~~~
56
+ paralex get <ZENODO_ID>
57
+ ~~~
58
+
59
+ The Zenodo ID can be found with the `paralex list` command.
60
+
61
+ # Serving the paralex site
62
+
63
+ First, build the standard package from files:
64
+
65
+ ~~~
66
+ paralex make_standard
67
+ ~~~
68
+
69
+ Second, build the specs files from the standard package:
70
+
71
+ ~~~
72
+ paralex make_doc
73
+ ~~~
74
+
75
+ Third, use mkdocs (which needs to be installed) to build this site:
76
+
77
+ ~~~
78
+ mkdocs serve
79
+ ~~~
@@ -1,9 +1,9 @@
1
- VERSION = "2.2.0"
2
-
3
- from .paths import templates_path, standard_path, docs_path
4
- from .meta import paralex_factory
5
- from .markdown import to_markdown
6
- from .utils import segment_sounds, create_ids, read_table
7
- from . import strategies
8
-
9
-
1
+ VERSION = "2.2.3"
2
+
3
+ from .paths import templates_path, standard_path, docs_path
4
+ from .meta import paralex_factory
5
+ from .markdown import to_markdown
6
+ from .utils import segment_sounds, create_ids, read_table
7
+ from . import strategies
8
+
9
+