sgsinclair / alta Goto Github PK
View Code? Open in Web Editor NEWThe Art of Literary Text Analysis
The Art of Literary Text Analysis
There are two typos in the alta/ipynb/GettingTexts.ipynb file:
after prompt 28, your wrote "withouth"
the more significant typo is after prompt 37, you write that totalCharacters += chars is equivalent to totalCharacters += chars -- I think you mean totalCharacters += chars is equivalent to totalCharacters = totalCharacters + chars
Error message when trying to load this jupyter notebook. Not sure what the problem is. Have tried over several days to access the page, and different browsers.
Have been reviewing the code to be sure I understand what is going on and could not find an explanation for a portion of the line listOfTokens = re.findall(r'\b\w[\w-]*\b', fileRead.lower())
Cannot find definition of the term [\w-] in python documentation for regex etc. Explanation would be appreciated.
Cheers, BobS
Might be better to point the urllib module to this link, which is plain text, and already decoded:
http://www.gutenberg.org/files/2147/2147-0.txt
I'm a relative rookie, but banged my head against the wall trying to make the code run on the previous link, always getting error messages about reading bytes object.
A very small issue: in cell [6] of GettingGraphical, this code appears:
goldBugLowerCaseWordTokenLengthFreqs = list(nltk.FreqDist(goldBugLowerCaseWordTokenLengths).items())
goldBugLowerCaseWordTokenLengthFreqs # sorted by word length (not frequency)
The second line seems to be missing the sorted function:
goldBugLowerCaseWordTokenLengthFreqs = list(nltk.FreqDist(goldBugLowerCaseWordTokenLengths).items())
sorted(goldBugLowerCaseWordTokenLengthFreqs) # sorted by word length (not frequency)
I would've made a pull request but couldn't create a new branch. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.