Skip to content

Instantly share code, notes, and snippets.

View haroonrasheed333's full-sized avatar

Haroon Rasheed Paul Mohamed haroonrasheed333

  • Entelo
  • San Francisco
View GitHub Profile
{
"metadata": {
"name": "Form Inputs"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "Education First"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "Education First Merged"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
from __future__ import division
from nltk.book import *
# Function to calculate the lexical diversity of a text
def lexical_diversity(text):
return len(text) / len(set(text))
def percentage(count, total):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.