You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dependencydistance.rst
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,29 @@
1
1
Dependency Distance
2
2
--------------------
3
3
4
-
The *dependency_distance* component adds measures of depedency distance to both :code:`Doc`, :code:`Span`, and :code:`Token` objects under the ._.dependency_distance attribute.
5
-
Dependency distance can be used a measure of syntactics complexity, the greater the distance, the more complex (`Liu 2008 <https://pdfs.semanticscholar.org/b6b9/cf00698a76d7a1e5ba58baa92d8799366813.pdf>`__, `Oya 2011 <http://www.paaljapan.org/conference2011/ProcNewest2011/pdf/poster/P-13.pdf>`__).
4
+
The *dependency_distance* component adds measures of depedency distance to both :code:`Doc`, :code:`Span`, and :code:`Token` objects
5
+
under the :code:`._.dependency_distance` attribute.
6
+
Dependency distance can be used a measure of syntactics complexity, the greater the distance, the more complex
The implementation in textdescriptives follows Oya, 2011. We calculate the distances from each token to their dependent, and take the mean of this for calculating the mean dependency distance for spans. We then calculate the Doc level DD by averaging over the sentence-level mean DDs.
9
+
The implementation in textdescriptives follows Oya, 2011. We calculate the distances
10
+
from each token to their dependent, and take the mean of this for calculating the mean
11
+
dependency distance for spans. We then calculate the Doc level dependency distance by
12
+
averaging over the sentence-level mean dependency distances.
8
13
9
-
Please see `this issue <https://github.com/HLasse/TextDescriptives/issues/77>`__ for how to calculate the DD metric proposed by Liu, 2008 with TextDescriptives.
14
+
Please see `this issue <https://github.com/HLasse/TextDescriptives/issues/77>`__ for
15
+
how to calculate the dependency distance metric proposed by Liu, 2008 with TextDescriptives.
10
16
11
17
12
-
For :code:`Doc` objects, the mean and standard deviation of dependency distance on the sentence level is returned along with the mean and standard deviation of the proportion adjacent dependency relations on sentence level.
18
+
For :code:`Doc` objects, the mean and standard deviation of dependency distance on the
19
+
sentence level is returned along with the mean and standard deviation of the proportion
20
+
adjacent dependency relations on sentence level.
13
21
14
-
For :code:`Span` objects, the mean dependency distance and the mean proportion adjacent dependency relations in the span are returned.
22
+
For :code:`Span` objects, the mean dependency distance and the mean proportion adjacent
23
+
dependency relations in the span are returned.
15
24
16
-
For :code:`Token` objects, the dependency distance and whether the dependency relation is an adjacent token is returned.
25
+
For :code:`Token` objects, the dependency distance and whether the dependency relation
- All components have been renamed to have the :code:`textdescriptives/` prefix. I.e. components should now be loaded with e.g. :code:`nlp.add_pipe("textdescriptives/descriptive_stats)`.
6
-
:code:`textdescriptives/all` can be used to load all components at once.
4
+
**v2.0.0 - 1st of January 2023**
5
+
6
+
- All components have been renamed to have the :code:`textdescriptives/` prefix. I.e. components should now be loaded with e.g. :code:`nlp.add_pipe("textdescriptives/descriptive_stats)`. :code:`textdescriptives/all` can be used to load all components at once.
7
7
- :code:`pos_stats` has been renamed to :code:`pos_proportions` for consistency.
8
8
9
9
**v1.1.0 - 21st of September, 2022**
10
+
10
11
- Added the new pipe; "quality". This pipe implements a series of metrics related to text quality, some of which were used by Rae et al. (2021) and Raffel et al. (2020) to filter large text corpora. See the documentation for examples.
11
12
12
13
**v1.0.7 - 4th May, 2022**
14
+
13
15
- Some minor fixes and bells and whistles.
14
16
15
17
**v1.0.5 - 4th October, 2021**
16
-
- POS proportions now use :code:`pos_` instead of :code:`tag_` by default. This behavior can be changed by setting `use_tag` to `False` when initialising the `pos_stats` module.
18
+
19
+
- POS proportions now use :code:`pos_` instead of :code:`tag_` by default. This behavior can be changed by setting `use_tag` to `False` when initialising the `pos_stats` module.
Copy file name to clipboardExpand all lines: docs/readability.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Readability
2
2
--------------------
3
3
4
-
The *readability* component adds the following readabiltiy metrics under the ._.readability attribute to :code:`Doc` objects.
4
+
The *readability* component adds the following readabiltiy metrics under the :code:`._.readability` attribute to :code:`Doc` objects.
5
5
6
6
* Gunning-Fog
7
7
* SMOG
@@ -12,7 +12,7 @@ The *readability* component adds the following readabiltiy metrics under the ._.
12
12
* Lix
13
13
* Rix
14
14
15
-
For specifics of the implementation, refer to the source. The equations are largely derived from the `textstat <https://github.com/shivam5992/textstat>`_ library.
15
+
For specifics of the implementation, refer to the source.±
0 commit comments