-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
15,734 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+450 KB
... un perfil de aplicación de datos para el análisis poético (Curado Malta)/MAP-Session.pdf
Binary file not shown.
Binary file added
BIN
+1.64 MB
...de aplicación de datos para el análisis poético (Curado Malta)/Recursos/ERModel-PChen.pdf
Binary file not shown.
Binary file added
BIN
+143 KB
...n perfil de aplicación de datos para el análisis poético (Curado Malta)/Recursos/FRBR.pdf
Binary file not shown.
Binary file added
BIN
+14.1 KB
...rfil de aplicación de datos para el análisis poético (Curado Malta)/Recursos/Modelos.xlsx
Binary file not shown.
Binary file added
BIN
+11.4 KB
...fil de aplicación de datos para el análisis poético (Curado Malta)/Recursos/Recursos.xlsx
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
... research on versification_ the corpus of czech verse (Petr Plechac)/Plechac-practica.url
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[InternetShortcut] | ||
URL=http://versologie.cz/talks/unedpractice/ |
2 changes: 2 additions & 0 deletions
2
...earch on versification_ the corpus of czech verse (Petr Plechac)/Presentacion Plechac.url
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[InternetShortcut] | ||
URL=http://versologie.cz/talks/uned |
Binary file added
BIN
+965 KB
...search on versification_ the corpus of czech verse (Petr Plechac)/plechacPresentation.pdf
Binary file not shown.
119 changes: 119 additions & 0 deletions
119
... (Ros, Robles, Caminero)/Materiales An. textos poéticos con R/CodigoPresentacionCoreNLP.R
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
#------------------------- Introduccion | ||
library(coreNLP) | ||
initCoreNLP() | ||
|
||
#------------------------ Tokenization y sentence splitting | ||
|
||
#Anotamos el fichero de interés | ||
anno<-annotateFile("/home/accaminero/PoesiaIngles.txt") | ||
anno | ||
|
||
# Mostramos cada token (palabra) que hemos identificado | ||
getToken(anno)$token | ||
|
||
# Mostramos a qué frase pertenece cada token | ||
getToken(anno)$sentence | ||
|
||
sentLen <- table(getToken(anno)$sentence) # sentLen contiene la longitud de cada frase | ||
hist(sentLen, breaks=30) # pintamos un gráfico con las longitudes de las frases | ||
|
||
#------------------------------- Lematizar, POS tag | ||
|
||
# Obtener la info de cada token | ||
token <- getToken(anno) | ||
|
||
# Presentar la info de los tokens de la primera frase | ||
token[token$sentence==1,c(1:9)] | ||
|
||
# ¿Cuántas ocurrencias hay de cada etiqueta? | ||
table(token$POS) | ||
|
||
# Utilizamos el universal tagset | ||
ut <- universalTagset(token$POS) | ||
|
||
# ¿Cuántas ocurrencias hay de cada etiqueta? | ||
table(ut) | ||
|
||
#Calculamos la cuenta de los nombres, pronombres, … en cada frase | ||
nounCnt <- tapply(ut == "NOUN", token$sentence, sum) | ||
pronCnt <- tapply(ut == "PRON", token$sentence, sum) | ||
adjCnt <- tapply(ut == "ADJ", token$sentence, sum) | ||
verbCnt <- tapply(ut == "VERB", token$sentence, sum) | ||
|
||
# Agrupamos los contadores en un dataframe | ||
posDf <- data.frame(nounCnt,pronCnt,adjCnt,verbCnt) | ||
|
||
#Mostramos las primeras posiciones del dataframe, que muestra las primeras frases | ||
head(posDf) | ||
|
||
# Pintamos un gráfico que compara cuántos nombres+pronombres hay con los adjetivos | ||
plot(nounCnt+pronCnt,adjCnt,pch=19,cex=2, col=rgb(0,0,0.02)) | ||
|
||
# Pintamos un gráfico que compara cuántos nombres+pronombres hay con los verbos | ||
plot(nounCnt+pronCnt,verbCnt,pch=19,cex=2, col=rgb(0,0,0.02)) | ||
|
||
|
||
#¿Cuáles son los 5 nombres que más se repiten? | ||
# // Usando el universal tagset… | ||
index <- which(ut=="NOUN") | ||
tab <- table(token$lemma[index]) | ||
head(sort(tab,decreasing=TRUE),5) | ||
|
||
# // Utilizando el Penn Treebank project … | ||
index <- which(token$POS == "NNP") | ||
tab <- table(token$lemma[index]) | ||
head(sort(tab,decreasing=TRUE),5) | ||
|
||
|
||
|
||
#---------------- Analisis de dependencias | ||
|
||
#Generamos el árbol de dependencias, y vemos su longitud | ||
parseTree <- getParse(anno) | ||
length(parseTree) | ||
|
||
#Muestra el árbol para la primera frase | ||
cat(parseTree[1]) | ||
|
||
# Mostramos las dependencias para la primera frase | ||
dep <- getDependency(anno) | ||
dep[dep$sentence == 1,] | ||
|
||
# El siguiente ejemplo sirve para analizar cuáles son los 3 verbos que toman como sujeto una palabra determinada en mayor | ||
# número de ocasiones. Por ejemplo “toll” | ||
index <- which(token$lemma[dep$depIndex] == "toll") | ||
depSelf <- dep[index,] | ||
depSelf <- depSelf[depSelf$type == "nsubj",] | ||
sort(table(depSelf$governor),decreasing=TRUE)[1:3] | ||
|
||
|
||
|
||
#------------- Reconocimiento de entidades con nombre | ||
|
||
token <- getToken(anno) | ||
#Mostramos cuántos tokens hemos encontrado para cada categoría | ||
table(token$NER) | ||
|
||
#Mostramos los tokens etiquetados como DURATION y PERSON | ||
unique(token$lemma[token$NER=="DURATION"]) | ||
unique(token$lemma[token$NER=="PERSON"]) | ||
|
||
# Para una de las personas identificadas en el documento, ¿cuáles son las 3 primeras palabras con las que tiene dependencias de | ||
# tipo gobernador?, ¿y de tipo dependiente? | ||
|
||
index <- which(token$lemma[dep$depIndex] == "Cromwell") | ||
depSelf <- dep[index,] | ||
sort(table(depSelf$governor),decreasing=TRUE)[1:3] | ||
sort(table(depSelf$dependent),decreasing=TRUE)[1:3] | ||
|
||
#------------- Correferencias | ||
|
||
#Calculamos y mostramos las primeras correferencias | ||
coref <- getCoreference(anno) | ||
head(coref) | ||
|
||
# Mostramos de forma agregada las palabras que forman parte de una correferencia | ||
table(token$token[coref$startIndex[coref$corefId == 10]]) | ||
|
||
|
||
|
Binary file added
BIN
+148 KB
...a con R (Ros, Robles, Caminero)/Materiales An. textos poéticos con R/EjercicioCoreNLP.pdf
Binary file not shown.
158 changes: 158 additions & 0 deletions
158
...etría con R (Ros, Robles, Caminero)/Materiales An. textos poéticos con R/PoesiaIngles.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
The curfew tolls the knell of parting day, | ||
The lowing herd wind slowly o'er the lea, | ||
The ploughman homeward plods his weary way, | ||
And leaves the world to darkness and to me. | ||
|
||
Now fades the glimmering landscape on the sight, | ||
And all the air a solemn stillness holds, | ||
Save where the beetle wheels his droning flight, | ||
And drowsy tinklings lull the distant folds; | ||
|
||
Save that from yonder ivy-mantled tower | ||
The moping owl does to the moon complain | ||
Of such, as wandering near her secret bower, | ||
Molest her ancient solitary reign. | ||
|
||
Beneath those rugged elms, that yew-tree's shade, | ||
Where heaves the turf in many a mouldering heap, | ||
Each in his narrow cell for ever laid, | ||
The rude forefathers of the hamlet sleep. | ||
|
||
The breezy call of incense-breathing morn, | ||
The swallow twittering from the straw-built shed, | ||
The cock's shrill clarion, or the echoing horn, | ||
No more shall rouse them from their lowly bed. | ||
|
||
For them no more the blazing hearth shall burn, | ||
Or busy housewife ply her evening care: | ||
No children run to lisp their sire's return, | ||
Or climb his knees the envied kiss to share. | ||
|
||
Oft did the harvest to their sickle yield, | ||
Their furrow oft the stubborn glebe has broke; | ||
How jocund did they drive their team afield! | ||
How bowed the woods beneath their sturdy stroke! | ||
|
||
Let not Ambition mock their useful toil, | ||
Their homely joys, and destiny obscure; | ||
Nor Grandeur hear with a disdainful smile, | ||
The short and simple annals of the poor. | ||
|
||
The boast of heraldry, the pomp of power, | ||
And all that beauty, all that wealth e'er gave, | ||
Awaits alike the inevitable hour. | ||
The paths of glory lead but to the grave. | ||
|
||
Nor you, ye Proud, impute to these the fault, | ||
If Memory o'er their tomb no trophies raise, | ||
Where through the long-drawn aisle and fretted vault | ||
The pealing anthem swells the note of praise. | ||
Can storied urn or animated bust | ||
Back to its mansion call the fleeting breath? | ||
Can Honour's voice provoke the silent dust, | ||
Or Flattery soothe the dull cold ear of Death? | ||
|
||
Perhaps in this neglected spot is laid | ||
Some heart once pregnant with celestial fire; | ||
Hands that the rod of empire might have swayed, | ||
Or waked to ecstasy the living lyre. | ||
|
||
But Knowledge to their eyes her ample page | ||
Rich with the spoils of time did ne'er unroll; | ||
Chill Penury repressed their noble rage, | ||
And froze the genial current of the soul. | ||
|
||
Full many a gem of purest ray serene, | ||
The dark unfathomed caves of ocean bear: | ||
Full many a flower is born to blush unseen, | ||
And waste its sweetness on the desert air. | ||
|
||
Some village-Hampden, that with dauntless breast | ||
The little tyrant of his fields withstood; | ||
Some mute inglorious Milton here may rest, | ||
Some Cromwell guiltless of his country's blood. | ||
|
||
The applause of listening senates to command, | ||
The threats of pain and ruin to despise, | ||
To scatter plenty o'er a smiling land, | ||
And read their history in a nation's eyes, | ||
|
||
Their lot forbade: nor circumscribed alone | ||
Their growing virtues, but their crimes confined; | ||
Forbade to wade through slaughter to a throne, | ||
And shut the gates of mercy on mankind, | ||
|
||
The struggling pangs of conscious truth to hide, | ||
To quench the blushes of ingenuous shame, | ||
Or heap the shrine of Luxury and Pride | ||
With incense kindled at the Muse's flame. | ||
|
||
Far from the madding crowd's ignoble strife, | ||
Their sober wishes never learned to stray; | ||
Along the cool sequestered vale of life | ||
They kept the noiseless tenor of their way. | ||
|
||
Yet even these bones from insult to protect | ||
Some frail memorial still erected nigh, | ||
With uncouth rhymes and shapeless sculpture decked, | ||
Implores the passing tribute of a sigh. | ||
|
||
Their name, their years, spelt by the unlettered muse, | ||
The place of fame and elegy supply: | ||
And many a holy text around she strews, | ||
That teach the rustic moralist to die. | ||
|
||
For who to dumb Forgetfulness a prey, | ||
This pleasing anxious being e'er resigned, | ||
Left the warm precincts of the cheerful day, | ||
Nor cast one longing lingering look behind? | ||
|
||
On some fond breast the parting soul relies, | ||
Some pious drops the closing eye requires; | ||
Ev'n from the tomb the voice of nature cries, | ||
Ev'n in our ashes live their wonted fires. | ||
|
||
For thee, who mindful of the unhonoured dead | ||
Dost in these lines their artless tale relate; | ||
If chance, by lonely Contemplation led, | ||
Some kindred spirit shall inquire thy fate, | ||
|
||
Haply some hoary-headed swain may say, | ||
'Oft have we seen him at the peep of dawn | ||
'Brushing with hasty steps the dews away | ||
'To meet the sun upon the upland lawn. | ||
|
||
'There at the foot of yonder nodding beech | ||
'That wreathes its old fantastic roots so high, | ||
'His listless length at noontide would he stretch, | ||
'And pore upon the brook that babbles by. | ||
|
||
'Hard by yon wood, now smiling as in scorn, | ||
'Muttering his wayward fancies he would rove, | ||
'Now drooping, woeful wan, like one forlorn, | ||
'Or crazed with care, or crossed in hopeless love. | ||
|
||
'One morn I missed him on the customed hill, | ||
'Along the heath and near his favourite tree; | ||
'Another came; nor yet beside the rill, | ||
'Nor up the lawn, nor at the wood was he; | ||
|
||
'The next with dirges due in sad array | ||
'Slow through the church-way path we saw him borne. | ||
'Approach and read (for thou can'st read) the lay, | ||
'Graved on the stone beneath yon aged thorn.' | ||
|
||
The Epitaph | ||
|
||
Here rests his head upon the lap of earth | ||
A youth to fortune and to fame unknown. | ||
Fair Science frowned not on his humble birth, | ||
And Melancholy marked him for her own. | ||
Large was his bounty, and his soul sincere, | ||
Heaven did a recompense as largely send: | ||
He gave to Misery all he had, a tear, | ||
He gained from Heaven ('twas all he wished) a friend. | ||
No farther seek his merits to disclose, | ||
Or draw his frailties from their dread abode, | ||
(There they alike in trembling hope repose) | ||
The bosom of his Father and his God. |
109 changes: 109 additions & 0 deletions
109
...tría con R (Ros, Robles, Caminero)/Materiales An. textos poéticos con R/PoesiaIngles2.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
Ye distant spires, ye antique towers, | ||
That crown the watery glade, | ||
Where grateful Science still adores | ||
Her Henry's holy Shade; | ||
And ye, that from the stately brow | ||
Of Windsor's heights the expanse below | ||
Of grove, of lawn, of mead survey, | ||
Whose turf, whose shade, whose flowers among | ||
Wanders the hoary Thames along | ||
His silver-winding way. | ||
|
||
Ah happy hills, ah pleasing shade, | ||
Ah fields beloved in vain, | ||
Where once my careless childhood strayed, | ||
A stranger yet to pain! | ||
I feel the gales, that from ye blow, | ||
A momentary bliss bestow, | ||
As waving fresh their gladsome wing, | ||
My weary soul they seem to soothe, | ||
And, redolent of joy and youth, | ||
To breathe a second spring. | ||
|
||
Say, Father Thames, for thou hast seen | ||
Full many a sprightly race | ||
Disporting on thy margent green | ||
The paths of pleasure trace, | ||
Who foremost now delight to cleave | ||
With pliant arm thy glassy wave? | ||
The captive linnet which enthrall? | ||
What idle progeny succeed | ||
To chase the rolling circle's speed, | ||
Or urge the flying ball? | ||
|
||
While some on earnest business bent | ||
Their murmuring labours ply | ||
'Gainst graver hours, that bring constraint | ||
To sweeten liberty: | ||
Some bold adventurers disdain | ||
The limits of their little reign, | ||
And unknown regions dare descry: | ||
Still as they run they look behind, | ||
They hear a voice in every wind, | ||
And snatch a fearful joy. | ||
|
||
Gay hope is theirs by fancy fed, | ||
Less pleasing when possessed; | ||
The tear forgot as soon as shed, | ||
The sunshine of the breast: | ||
Theirs buxom health of rosy hue, | ||
Wild wit, invention ever-new, | ||
And lively cheer of vigour born; | ||
The thoughtless day, the easy night, | ||
The spirits pure, the slumbers light, | ||
That fly the approach of morn. | ||
|
||
Alas, regardless of their doom, | ||
The little victims play! | ||
No sense have they of ills to come, | ||
Nor care beyond today: | ||
Yet see how all around 'em wait | ||
The ministers of human fate, | ||
And black Misfortune's baleful train! | ||
Ah, show them where in ambush stand | ||
To seize their prey the murtherous band! | ||
Ah, tell them, they are men! | ||
|
||
These shall the fury Passions tear, | ||
The vultures of the mind, | ||
Disdainful Anger, pallid Fear, | ||
And Shame that skulks behind; | ||
Or pining Love shall waste their youth, | ||
Or Jealousy with rankling tooth, | ||
That inly gnaws the secret heart, | ||
And Envy wan, and faded Care, | ||
Grim-visaged comfortless Despair, | ||
And Sorrow's piercing dart. | ||
|
||
Ambition this shall tempt to rise, | ||
Then whirl the wretch from high, | ||
To bitter Scorn a sacrifice, | ||
And grinning Infamy. | ||
The stings of Falsehood those shall try, | ||
And hard Unkindness' altered eye, | ||
That mocks the tear it forced to flow; | ||
And keen Remorse with blood defiled, | ||
And moody Madness laughing wild | ||
Amid severest woe. | ||
|
||
Lo, in the vale of years beneath | ||
A grisly troop are seen, | ||
The painful family of Death, | ||
More hideous than their Queen: | ||
This racks the joints, this fires the veins, | ||
That every labouring sinew strains, | ||
Those in the deeper vitals rage: | ||
Lo, Poverty, to fill the band, | ||
That numbs the soul with icy hand, | ||
And slow-consuming Age. | ||
|
||
To each his sufferings: all are men, | ||
Condemned alike to groan; | ||
The tender for another's pain, | ||
The unfeeling for his own. | ||
Yet ah! why should they know their fate? | ||
Since sorrow never comes too late, | ||
And happiness too swiftly flies. | ||
Thought would destroy their paradise. | ||
No more; where ignorance is bliss, | ||
'Tis folly to be wise. |
Binary file added
BIN
+709 KB
...obles, Caminero)/Materiales An. textos poéticos con R/PresentacionCoreNLPEstilometria.pdf
Binary file not shown.
Binary file added
BIN
+195 KB
...s, Robles, Caminero)/Materiales An. textos poéticos con R/coreNLP_dependencies_manual.pdf
Binary file not shown.
Binary file added
BIN
+214 KB
...estilometría con R (Ros, Robles, Caminero)/Materiales An. textos poéticos con R/stylo.pdf
Binary file not shown.
Binary file added
BIN
+712 KB
...tría con R (Ros, Robles, Caminero)/Materiales An. textos poéticos con R/stylo_howto-3.pdf
Binary file not shown.
Binary file added
BIN
+400 KB
...aje natural y sus aplicaciones en poesía (Nuria Bel)/CURSO-UNED-BEL-plan-y-ejercicios.pdf
Binary file not shown.
Oops, something went wrong.