User:Kendal/Special Issue: Difference between revisions
Line 62: | Line 62: | ||
</syntaxhighlight> | |||
→ NLTK | |||
<syntaxhighlight lang="python"> | |||
language = open('../txt/language.txt').read() | |||
tokens = nltk.word_tokenize(language) | |||
tagged = nltk.pos_tag(tokens) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Research & Writing ==== | ==== Research & Writing ==== |
Revision as of 19:11, 7 April 2021
Words/publications to edit: ?!, Undecidability, Resurgence & Liquid
with Nami, Clara, Louisa
→Mapping Keywords
→IDEA PAGE FOR INDIVIDUAL REPUBLICATION
→SHARED WIP PAD
Prototyping
→ Generating randomised textual poems from a set of variable words/phrases
→ ASCII time, converting images into ascii via python.
from PIL import Image
from urllib.request import urlopen
f = Image.open (urlopen("PUT URL HERE"))
g = f.convert("1") #for b&w
g.save ("bw.png") #to save a new copy
import aalib
screen = aalib.AsciiScreen(width=80, height=40) #size of the canvas
h = f.resize(screen.virtual_size).convert('L',dither=Image.NONE)
screen.put_image((0, 0), h)
print (screen.render())
__s_s_s_s_s_s_s_s_s_s_s_s_s_.
-QQQQQQQQQQQQQQQQQQQQQQQQQQP
)TWQQQQQQQQQQQQQQQQQQQQQVT'
.__,_ -QQQQQQQQQQQQQQQQQQQQP ___,.
_yQQQQQQgmWQQQQQQQQQQQQQQQQQQggQQQQQQw,
_QQQ@VV$QWQQQQQQW$QQQQQQQQQQQQQQWHVVQQQm.
jQQ[ -4WQQQQQQdQQQQQQQQQQQQW! 4QQ[
dQQ: <QWQQQQQQm3QQQQQQQQQQQQg, )WQf
]QQc .jQQWQQQQQQQgJQQQQQQQQQQQQQ/ jQQ(
-WQQc_mQQQQQQQQV4WQh$SQQQQQQQQQQQQw.jQQE
+QQWQQQQQQQ@?` ]WQQyQQQQQQQQQQQQQQQWQ@`
)QQQQQQQQF jQQQQQQQQQQQQQQQQQQWQ@'
)QQQQQQD -9QQQQQQWQQQQQQQQQQQW'
QQQQQW' ~9QQQQEQQQQQQQQQQQf
$WQQQQgas,. ..=VHBGQWQQQQQQQQQ[
)QQQQQQQWQQQmQWQQQQWQWQQQQQQQQQW
$WQQQQQQQQWQQQQQQQQQWQQQQQQQQQ[
-WWQQQQQQQQQQQQQQQQQQQQQQQQQQP
-QWQQQQQQQQmmmmm5QWQQQQQQQQP
-$QQQQQQQQQQQ@nBUWQQQQQQQF
_/ 4QQQQWQQQQQQQWWWQQQQQW(
_swQW` "$QQQQQQQQWWWQQQQQQP`
jWWWWf 4WQQQQQQQQQQQQQ@^
jmWQQQg, -9QQQQQQQQQQW?
)WWQQQQWQc .saQQQQQQQQQQma,
"Y$QQQWWg, _wQQWQQQQQQQQQQQWQQa
-~~~~~` --------------------
→ NLTK
language = open('../txt/language.txt').read()
tokens = nltk.word_tokenize(language)
tagged = nltk.pos_tag(tokens)