This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from textblob import TextBlob | |
import random | |
import re | |
# Lady02 Text1 | |
lady = list() | |
# Lady01 Text1 | |
search = r'\b(?:[Ww]ell-bred|[Ii]ll-bred|lady-like|unlady-like|lady)\b [A-Za-z ]+' | |
# search = r'\b(?:[Ii]f you|[Ii]f they|[Ii]f it)\b [A-Za-z ]+' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"tombowner": "Kang Ye", | |
"period": "Northern Zhou", | |
"death_site": "", | |
"burial_site": "Xi'an", | |
"lived_site": "Ganzhou", | |
"origin": "Samarkand" | |
}, | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load libraries | |
library(igraph) | |
library(curl) | |
library(rgdal) | |
library(rgeos) | |
library(maptools) | |
library(ggplot2) | |
#load data sets | |
orbis_edges <-read.csv(curl("https://stacks.stanford.edu/file/druid:mn425tz9757/orbis_edges_0514.csv"),head=TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import goslate | |
def getText(text): | |
gs = goslate.Goslate() | |
with open('sunflower.txt', 'r') as f: | |
text = f.read() | |
l = [] | |
l_array = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import goslate | |
def generate(text): | |
gs = goslate.Goslate() | |
with open(text, 'r') as f: | |
text = f.read() | |
l = [] | |
for i in range(100): |
NewerOlder