-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add readability scores functions #293
Comments
I think you are looking for this tutorial: Which uses DaCy in integration with textdescriptives, which calculates readability metrics. |
I
I am having problems to install compatible versions of spacy, dacy and textdescriptives. Do you maybe know which versions are compatible ? I tried many combinations, but there is always something wrong. Thanks ''' ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
|
Hmm on a google colab instance this seems to work without issue: # install dependencies (if you do this from the terminal remove the !
!pip install dacy textdescriptives
# ...
# dacy-2.7.8 ftfy-6.3.1 pyphen-0.17.0 spacy-alignments-0.9.1 spacy-experimental-0.6.4 spacy-lookups-data-1.0.5 spacy-transformers-1.3.5 spacy-wrap-1.4.5 textdescriptives-2.8.2 tokenizers-0.15.2 transformers-4.36.2
# load model
import dacy
nlp = dacy.load("small") |
Thanks ! it works now with pip install dacy==2.7.8 ftfy==6.3.1 pyphen==0.17.0 spacy-alignments==0.9.1 spacy-experimental==0.6.4 spacy-lookups-data==1.0.5 spacy-transformers==1.3.5 spacy-wrap==1.4.5 textdescriptives==2.8.2 tokenizers==0.15.2 transformers==4.36.2 |
It seems there is no readability tool for processing Danish texts. I tried with spacy_readability, loaded a danish language model with it, but it seems that the spacy_readability works with the english language ( it has a hardcoded list of english words in it).
Can Dacy do something similar to spacy_readability ?
Or can Dacy count Danish syllables in a word ? That would already be a great help, from there one could implement the readability scores ( flesh-kincaid, etc)
The text was updated successfully, but these errors were encountered: