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
Please describe the module you would like to add to bricks
Super easy but great indicator for the quality of a text. Can also be used for Cognition.
Do you already have an implementation?
deflexical_divesity(text):
word_count=len(text)
vocab_size=len(set(text))
returnword_count/vocab_size# this is the diversity score
Additional context
Found here: https://btw.informatik.uni-rostock.de/download/workshopband/C2-5.pdf
The actual implementation in the paper is not correct. The correct implementation and many more useful snippets can be found in the book "Natural Language Processing with Python".
The text was updated successfully, but these errors were encountered:
Please describe the module you would like to add to bricks
Super easy but great indicator for the quality of a text. Can also be used for Cognition.
Do you already have an implementation?
Additional context
Found here: https://btw.informatik.uni-rostock.de/download/workshopband/C2-5.pdf
The actual implementation in the paper is not correct. The correct implementation and many more useful snippets can be found in the book "Natural Language Processing with Python".
The text was updated successfully, but these errors were encountered: