Compare commits
4 Commits
43c2a1a326
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ac136ee01 | ||
|
|
4d10148e49 | ||
|
|
6b99136661 | ||
|
|
5a4bada9c5 |
6
hp/hp.py
6
hp/hp.py
@@ -45,6 +45,10 @@ while i < len(lines):
|
||||
|
||||
print("Parsing lines")
|
||||
corpus = " ".join(truelines)
|
||||
|
||||
#with open("hp_parsed.txt", "w") as f:
|
||||
# f.writelines(corpus)
|
||||
|
||||
tokens = corpus.split(" ")
|
||||
words = set(tokens)
|
||||
id_to_word = dict(enumerate(words))
|
||||
@@ -55,8 +59,10 @@ from numpy import matrix as M, array
|
||||
#m = M( [ [ 0 for _ in range(len(words)) ] for _ in range(len(words)) ] )
|
||||
|
||||
print("allocating array")
|
||||
# ich zähle alle folgeworte i→j
|
||||
m = array([0])
|
||||
m.resize(N, N)
|
||||
# die wahrscheinlichkeiten
|
||||
M = array([0.0])
|
||||
M.resize(N, N)
|
||||
|
||||
|
||||
1
hp/hp_parsed.txt
Normal file
1
hp/hp_parsed.txt
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,7 @@
|
||||
all:
|
||||
all: The\ Art\ of\ Memory\ Loss.ipynb
|
||||
jupyter nbconvert --to html "The Art of Memory Loss.ipynb" --config jupyter_nbconvert_config.py
|
||||
sed -i '2 a <link rel="stylesheet" href="rise.css">' "The Art of Memory Loss.html"
|
||||
|
||||
upload: all
|
||||
scp rise.css The\ Art\ of\ Memory\ Loss.html oreburgh:www/forschungstage
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user