master
funix 3 years ago
parent 23ae7eb5fa
commit a98e3b50e0

@ -19,7 +19,7 @@ import nltk # to use NLTK
# Open the speech-to-text result :: downloaded from the web interface >> # Open the speech-to-text result :: downloaded from the web interface >>
with open('speech.txt','r') as speech: # let's import the text with open('../speech.txt','r') as speech: # let's import the text
text = speech.read() # and make python read it :) text = speech.read() # and make python read it :)
print(text) # print it! print(text) # print it!
@ -87,7 +87,7 @@ for e in pos: # e is the current element, pos is the a
html += " <span class='dot'>.</span><br> \n" html += " <span class='dot'>.</span><br> \n"
else: # fill the html with each word and assign it as class its POS else: # fill the html with each word and assign it as class its POS
html += " <span class='"+e[1]+"'> "+e[0]+"</span>\n" html += " <span class='"+e[1]+"'> "+e[0]+" </span>\n"
# Close the html text # Close the html text

@ -9,7 +9,7 @@ from duckduckgo_images_api import search # import the library for scrape
import time # to create delays :: for having a few seconds to check the console import time # to create delays :: for having a few seconds to check the console
with open('speech.txt','r') as speech: # let's import the text with open('../speech.txt','r') as speech: # let's import the text
qq = speech.readlines() # and split it in lines, it will create an array, a list qq = speech.readlines() # and split it in lines, it will create an array, a list
print(qq) # print the array! print(qq) # print the array!

@ -45,7 +45,7 @@ html = '''
# Open the speech-to-text result :: downloaded from the web interface >> # Open the speech-to-text result :: downloaded from the web interface >>
with open('speech.txt','r') as speech: # let's import the text with open('../speech.txt','r') as speech: # let's import the text
qq = speech.readlines() # and split it in lines, it will create an array, a list qq = speech.readlines() # and split it in lines, it will create an array, a list
print(qq) # print the array! print(qq) # print the array!

@ -2,148 +2,148 @@
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../pagedjs_files/interface.css"> <link rel="stylesheet" href="./pagedjs_files/interface.css">
<script src="../pagedjs_files/paged.polyfill.js"></script> <script src="./pagedjs_files/paged.polyfill.js"></script>
<link rel="stylesheet" href="./styles/1.css"> <link rel="stylesheet" href="./styles/1.css">
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>📡 💻📘</title> <title>📡 💻📘</title>
</head> </head>
<body> <body>
<span class='JJ'> ok</span> <span class='JJ'> ok </span>
<span class='NN'> let</span> <span class='NN'> let </span>
<span class='POS'>'s</span> <span class='POS'>'s </span>
<span class='NN'> talk</span> <span class='NN'> talk </span>
<span class='IN'> in</span> <span class='IN'> in </span>
<span class='NNP'> English</span> <span class='NNP'> English </span>
<span class='IN'> for</span> <span class='IN'> for </span>
<span class='NN'> awhile</span> <span class='NN'> awhile </span>
<span class='WP'> what</span> <span class='WP'> what </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='PRP'> we</span> <span class='PRP'> we </span>
<span class='VBG'> eating</span> <span class='VBG'> eating </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='CC'> or</span> <span class='CC'> or </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='IN'> so</span> <span class='IN'> so </span>
<span class='PRP'> it</span> <span class='PRP'> it </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='VBG'> starting</span> <span class='VBG'> starting </span>
<span class='RB'> again</span> <span class='RB'> again </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='JJ'> ok</span> <span class='JJ'> ok </span>
<span class='NN'> navigate</span> <span class='NN'> navigate </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> you</span> <span class='PRP'> you </span>
<span class='VBP'> need</span> <span class='VBP'> need </span>
<span class='TO'> to</span> <span class='TO'> to </span>
<span class='VB'> rest</span> <span class='VB'> rest </span>
<span class='RB'> sometimes</span> <span class='RB'> sometimes </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> also</span> <span class='RB'> also </span>
<span class='VBD'> implemented</span> <span class='VBD'> implemented </span>
<span class='IN'> that</span> <span class='IN'> that </span>
<span class='VBG'> implementing</span> <span class='VBG'> implementing </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> he</span> <span class='PRP'> he </span>
<span class='VBZ'>'s</span> <span class='VBZ'>'s </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> sentence</span> <span class='NN'> sentence </span>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='PRP'> we</span> <span class='PRP'> we </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='JJ'> interested</span> <span class='JJ'> interested </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='VB'> remember</span> <span class='VB'> remember </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> so</span> <span class='RB'> so </span>
<span class='RB'> basically</span> <span class='RB'> basically </span>
<span class='NN'> sentence</span> <span class='NN'> sentence </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='WRB'> where</span> <span class='WRB'> where </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='TO'> to</span> <span class='TO'> to </span>
<span class='VB'> go</span> <span class='VB'> go </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> couple</span> <span class='NN'> couple </span>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='RB'> then</span> <span class='RB'> then </span>
<span class='PRP'> you</span> <span class='PRP'> you </span>
<span class='VBP'> put</span> <span class='VBP'> put </span>
<span class='DT'> the</span> <span class='DT'> the </span>
<span class='NN'> adult</span> <span class='NN'> adult </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='RB'> bit</span> <span class='RB'> bit </span>
<span class='JJR'> easier</span> <span class='JJR'> easier </span>
<span class='TO'> to</span> <span class='TO'> to </span>
<span class='VB'> understand</span> <span class='VB'> understand </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> actually</span> <span class='RB'> actually </span>
<span class='RB'> maybe</span> <span class='RB'> maybe </span>
<span class='NNS'> people</span> <span class='NNS'> people </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='VBP'> do</span> <span class='VBP'> do </span>
<span class='RB'> n't</span> <span class='RB'> n't </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> I</span> <span class='PRP'> I </span>
<span class='VBP'>'m</span> <span class='VBP'>'m </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='VBG'> thinking</span> <span class='VBG'> thinking </span>
<span class='PRP'> it</span> <span class='PRP'> it </span>
<span class='VBZ'>'s</span> <span class='VBZ'>'s </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='DT'> the</span> <span class='DT'> the </span>
<span class='NNS'> centres</span> <span class='NNS'> centres </span>
<span class='VBP'> do</span> <span class='VBP'> do </span>
<span class='RB'> n't</span> <span class='RB'> n't </span>
<span class='VB'> put</span> <span class='VB'> put </span>
<span class='DT'> the</span> <span class='DT'> the </span>
<span class='NN'> dot</span> <span class='NN'> dot </span>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='VB'> put</span> <span class='VB'> put </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> couple</span> <span class='NN'> couple </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='IN'> because</span> <span class='IN'> because </span>
<span class='RB'> then</span> <span class='RB'> then </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> they</span> <span class='PRP'> they </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='VBG'> talking</span> <span class='VBG'> talking </span>
<span class='PRP'> they</span> <span class='PRP'> they </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> booklet</span> <span class='NN'> booklet </span>
<span class='CC'> but</span> <span class='CC'> but </span>
<span class='PRP'> they</span> <span class='PRP'> they </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='VBG'> writing</span> <span class='VBG'> writing </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='IN'> so</span> <span class='IN'> so </span>
<span class='PRP'> it</span> <span class='PRP'> it </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='JJ'> fine</span> <span class='JJ'> fine </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> so</span> <span class='RB'> so </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='PRP'> you</span> <span class='PRP'> you </span>
<span class='VBN'> done</span> <span class='VBN'> done </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='RB'> now</span> <span class='RB'> now </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='JJ'> f</span> <span class='JJ'> f </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='RB'> up</span> <span class='RB'> up </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
</body> </body>
</html> </html>

@ -2,148 +2,148 @@
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="..clea/pagedjs_files/interface.css"> <link rel="stylesheet" href="./pagedjs_files/interface.css">
<script src="../pagedjs_files/paged.polyfill.js"></script> <script src="./pagedjs_files/paged.polyfill.js"></script>
<link rel="stylesheet" href="./styles/2.css"> <link rel="stylesheet" href="./styles/2.css">
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>📡 💻📘</title> <title>📡 💻📘</title>
</head> </head>
<body> <body>
<span class='JJ'> ok</span> <span class='JJ'> ok </span>
<span class='NN'> let</span> <span class='NN'> let </span>
<span class='POS'>'s</span> <span class='POS'>'s </span>
<span class='NN'> talk</span> <span class='NN'> talk </span>
<span class='IN'> in</span> <span class='IN'> in </span>
<span class='NNP'> English</span> <span class='NNP'> English </span>
<span class='IN'> for</span> <span class='IN'> for </span>
<span class='NN'> awhile</span> <span class='NN'> awhile </span>
<span class='WP'> what</span> <span class='WP'> what </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='PRP'> we</span> <span class='PRP'> we </span>
<span class='VBG'> eating</span> <span class='VBG'> eating </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='CC'> or</span> <span class='CC'> or </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='IN'> so</span> <span class='IN'> so </span>
<span class='PRP'> it</span> <span class='PRP'> it </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='VBG'> starting</span> <span class='VBG'> starting </span>
<span class='RB'> again</span> <span class='RB'> again </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='JJ'> ok</span> <span class='JJ'> ok </span>
<span class='NN'> navigate</span> <span class='NN'> navigate </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> you</span> <span class='PRP'> you </span>
<span class='VBP'> need</span> <span class='VBP'> need </span>
<span class='TO'> to</span> <span class='TO'> to </span>
<span class='VB'> rest</span> <span class='VB'> rest </span>
<span class='RB'> sometimes</span> <span class='RB'> sometimes </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> also</span> <span class='RB'> also </span>
<span class='VBD'> implemented</span> <span class='VBD'> implemented </span>
<span class='IN'> that</span> <span class='IN'> that </span>
<span class='VBG'> implementing</span> <span class='VBG'> implementing </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> he</span> <span class='PRP'> he </span>
<span class='VBZ'>'s</span> <span class='VBZ'>'s </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> sentence</span> <span class='NN'> sentence </span>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='PRP'> we</span> <span class='PRP'> we </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='JJ'> interested</span> <span class='JJ'> interested </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='VB'> remember</span> <span class='VB'> remember </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> so</span> <span class='RB'> so </span>
<span class='RB'> basically</span> <span class='RB'> basically </span>
<span class='NN'> sentence</span> <span class='NN'> sentence </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='WRB'> where</span> <span class='WRB'> where </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='TO'> to</span> <span class='TO'> to </span>
<span class='VB'> go</span> <span class='VB'> go </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> couple</span> <span class='NN'> couple </span>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='RB'> then</span> <span class='RB'> then </span>
<span class='PRP'> you</span> <span class='PRP'> you </span>
<span class='VBP'> put</span> <span class='VBP'> put </span>
<span class='DT'> the</span> <span class='DT'> the </span>
<span class='NN'> adult</span> <span class='NN'> adult </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='RB'> bit</span> <span class='RB'> bit </span>
<span class='JJR'> easier</span> <span class='JJR'> easier </span>
<span class='TO'> to</span> <span class='TO'> to </span>
<span class='VB'> understand</span> <span class='VB'> understand </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> actually</span> <span class='RB'> actually </span>
<span class='RB'> maybe</span> <span class='RB'> maybe </span>
<span class='NNS'> people</span> <span class='NNS'> people </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='VBP'> do</span> <span class='VBP'> do </span>
<span class='RB'> n't</span> <span class='RB'> n't </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> I</span> <span class='PRP'> I </span>
<span class='VBP'>'m</span> <span class='VBP'>'m </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='VBG'> thinking</span> <span class='VBG'> thinking </span>
<span class='PRP'> it</span> <span class='PRP'> it </span>
<span class='VBZ'>'s</span> <span class='VBZ'>'s </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='DT'> the</span> <span class='DT'> the </span>
<span class='NNS'> centres</span> <span class='NNS'> centres </span>
<span class='VBP'> do</span> <span class='VBP'> do </span>
<span class='RB'> n't</span> <span class='RB'> n't </span>
<span class='VB'> put</span> <span class='VB'> put </span>
<span class='DT'> the</span> <span class='DT'> the </span>
<span class='NN'> dot</span> <span class='NN'> dot </span>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='VB'> put</span> <span class='VB'> put </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> couple</span> <span class='NN'> couple </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='IN'> because</span> <span class='IN'> because </span>
<span class='RB'> then</span> <span class='RB'> then </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='PRP'> they</span> <span class='PRP'> they </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='VBG'> talking</span> <span class='VBG'> talking </span>
<span class='PRP'> they</span> <span class='PRP'> they </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='DT'> a</span> <span class='DT'> a </span>
<span class='NN'> booklet</span> <span class='NN'> booklet </span>
<span class='CC'> but</span> <span class='CC'> but </span>
<span class='PRP'> they</span> <span class='PRP'> they </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='RB'> not</span> <span class='RB'> not </span>
<span class='VBG'> writing</span> <span class='VBG'> writing </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='IN'> so</span> <span class='IN'> so </span>
<span class='PRP'> it</span> <span class='PRP'> it </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='RB'> just</span> <span class='RB'> just </span>
<span class='JJ'> fine</span> <span class='JJ'> fine </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='RB'> so</span> <span class='RB'> so </span>
<span class='VBP'> are</span> <span class='VBP'> are </span>
<span class='PRP'> you</span> <span class='PRP'> you </span>
<span class='VBN'> done</span> <span class='VBN'> done </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
<span class='CC'> and</span> <span class='CC'> and </span>
<span class='RB'> now</span> <span class='RB'> now </span>
<span class='VBZ'> is</span> <span class='VBZ'> is </span>
<span class='JJ'> f</span> <span class='JJ'> f </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='NNP'> *</span> <span class='NNP'> * </span>
<span class='RB'> up</span> <span class='RB'> up </span>
<span class='dot'>.</span><br> <span class='dot'>.</span><br>
</body> </body>
</html> </html>

@ -1,18 +0,0 @@
ok let's talk in English for awhile what are we eating
or not so it is starting again
ok navigate
you need to rest sometimes
also implemented that implementing
he's a sentence and we are not interested
remember
so basically sentence
where is to go a couple and then you put the adult
a bit easier to understand
actually maybe people just don't just
I'm just thinking it's not the centres don't put the dot and just put a couple
because then
they are talking they are a booklet but they are not writing
so it is just fine
so are you done
and now is f***** up
<span class="interim"></span>

@ -23,26 +23,21 @@
/* Custom variables */ /* Custom variables */
:root{ :root{
--text: rgba(0,0,0,0.3)
} }
body{ body{
font-size: 2vw; font-size: 24px;
line-height: 25px;
text-align: justify; text-align: justify;
text-justify: inter-word; text-justify: inter-word;
line-height: 1.8vw;
color: rgb(0,0,0)
} }
span{ span{
color: rgba(0,0,0,0.5) color: var(--text)
} }
/* .dot{
color: black;
} */
span.CC{ span.CC{
background-color:#333300 background-color:#333300

Loading…
Cancel
Save