Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to calculate the lexical diversity average (with 1000 window word length)
Post: RE: How to calculate the lexical diversity average...

DPaul, thank you! You have provided me with very helpful info. I have tried your suggestions out and they are effective. A puzzle still remains, however. The assignment asks to create *a function,* ...
AOCL1234 Homework 6 3,336 Jul-27-2020, 03:49 AM
    Thread: How to calculate the lexical diversity average (with 1000 window word length)
Post: RE: How to calculate the lexical diversity average...

Thank you both for your useful responses. DPaul, the code you proposed is effective. I have a related question: is there anyway I can write a piece of code, which would entail text[m:m+1000], to achie...
AOCL1234 Homework 6 3,336 Jul-25-2020, 08:15 PM
    Thread: How to calculate the lexical diversity average (with 1000 window word length)
Post: How to calculate the lexical diversity average (wi...

I want to calculate the lexical diversity average over the course of a text. The window word length is 1000, whereas the overlap between constrained text increments is 500, e.g. [0:999], [500:1499], [...
AOCL1234 Homework 6 3,336 Jul-21-2020, 05:16 PM
    Thread: What is distinction between 'sent3' and 'set(sent3)'?
Post: RE: What is distinction between 'sent3' and 'set(s...

OK. Understood. The question extends to the following operations. If 'set(sent3)' generates the distinct token total for sentence 3, and 'set(text1)' generates the distinct token total for text 1, cle...
AOCL1234 Homework 5 2,501 Jul-09-2020, 03:30 AM
    Thread: What is distinction between 'sent3' and 'set(sent3)'?
Post: What is distinction between 'sent3' and 'set(sent3...

What is the distinction between 'sent3' and 'set(sent3)', 'sent2' and 'set(sent2)', etc.? 'sent3' generates the tokens entailed in sentence 3, which makes sense, but 'set(sent3)' is unusually ordered....
AOCL1234 Homework 5 2,501 Jul-08-2020, 09:51 PM
    Thread: problem with Matplotlib
Post: RE: problem with Matplotlib

OK. I did research into BBcode and will do my best to use tags correctly in my future posts. Thank you.
AOCL1234 Homework 4 2,328 Jul-03-2020, 07:22 PM
    Thread: problem with Matplotlib
Post: RE: problem with Matplotlib

Hi Gribouillis, All in all, the download is complete. I received a warning output message, however, in reference to the pip version I currently have (i.e. 20.1). Should I be concerned about this? Is...
AOCL1234 Homework 4 2,328 Jul-02-2020, 08:53 PM
    Thread: problem with ‘>’ (i.e. greater than) sign
Post: problem with ‘>’ (i.e. greater than) sign

When I enter the following operation, there is a syntax error, apparently due to the 'greater than' sign: >>> V = set(text1) >>> long_words = [w for w in V if len(w) >ArithmeticE...
AOCL1234 Homework 2 1,900 Jun-30-2020, 09:06 PM
    Thread: problem with Matplotlib
Post: problem with Matplotlib

When I try to generate a plot (via Matplotlib), the output is as follows: import matplotlib.pyplot as plt ModuleNotFoundError: No module named 'matplotlib' I checked via my terminal whether or n...
AOCL1234 Homework 4 2,328 Jun-30-2020, 08:59 PM
    Thread: lexical diversity calculation
Post: lexical diversity calculation

How does one limit text length when calculating lexical diversity? For instance, say I would like to calculate the lexical diversity of TextA. While its total text length is 10,000, I would like to co...
AOCL1234 General Coding Help 1 2,603 Jun-25-2020, 08:52 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020