












































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!













































































Modeling = our object is the language. We provide abstract descriptions of some objects. In our case an abstract description of language (for example nouns, tense…). We’re dealing with linguistic data. The technological revolution impacts our language (not like the other revolutions, for example the industrial one). CL deals with MODELING (an abstract description of what we deal with, so language) Large language models (LLMs) —> for example ChatGPT. It describes the language in an abstract way. It happens in the same way in our mind Statistical or rule-based modeling, because there’re 2 types of models:
understand from context); to teach it to a computer we have to write a rule e.g. if it’s followed by a noun then it’s a verb (PoS tagging = assigning a PoS to words —> grammatical analysis ). During the first decades of CL, scholars spent a lot of time using rule-based models (these rules became algorithms, then programs and then language models). The first NLP (natural language processing) tools were rule-based until the 90s and they followed the shape “If … , then …”. These tools were pretty good but they were not the best. English has been a language that dominated the field also because it’s a morphological poor language, so these types of models prefer English (that deals with word order unlike other languages)
Linguistics collects data, in fact ChatGPT exists thanks to data (we all provide these data). But it’s NOT a democratic system. CL is not the same as digital humanities. Digital Humanities was created in 2004 when “The companion to digital humanities” was published. DH is broader than CL (for example it deals also with history, philosophy and so on). The tile of that state of the art could also have been “Humanities Computing”. They had to choose between these two titles. But at the time digital was attractive. The difference is that computation is a method and digital is a format. Formats change, but methods don’t change. Now the term computational humanities is replacing digital humanities. THE MISSION OF CL
programming tools for various NLP (in Italian it is TAL = trattamento automatico del linguaggio) tasks, for instance writing a formal rule of grammar is a way to formally describe natural language. So the aim of CL is to develop tools that automatically perform some natural language tasks, such as PoS tagging, designing the syntax of a sentence, machine translation, semantic role labelling. Usually different tasks were done in different stages with different models, now ChatGPT when being prompted does all the tasks together since it was trained thanks to a LLM
data (written, spoken, audio, video):
sentiment analysis (it can be used for politics, economy…)
Siri uses speech recognition and performs linguistics analysis on our texts; its answer is speech synthesis NLU = Natural Language Understanding NLG = Natural Language Generation THE IMPORTANCE OF MODELING - THE PROCESS OF ABSTRACTION Modeling means to abstract representation of phenomenon, it’s an action of formal abstraction of data, linguistic knowledge ChatGPT is a modeling that describes in an abstract way the object that is the language, it’s based on LLMs
linguistic knowledge to simulate the human linguistic performance (research as imitation of nature). AI simulates our behavior using language, which is what makes us humans. Language in fact is a typical human property. For the first time in history there’s a dissociation between language and the mind, thoughts. We have to generalize to create a model. Prediction is everything in AI. Models change over time. Language data changes reflect the changes in our world. The answers that ChatGPT gives us are a reflection of our society, because they’re based on the data we put on the web. We have data and we train a machine with the scope to have an abstract
All this leads to a new science which is Linguistic Data Science. WHAT IS LINGUISTIC DATA SCIENCE (LDS)?
Today with a PC we can process a large amount of linguistic data. Data science processes data especially from a statistical point of view. We do the same thing but with linguistic data instead, to solve theoretical and empirical linguistic problems.
clustering of emails of bank costumers (= categorizing the emails) and so on. These are practical problems provided by linguistic data, since for example emails are written. So, we want to solve automatically theoretical and empirical linguistic problems, using a large amount of data. Processing uses a lot of data to train data-driven fashion a model to perform some data (I use a model to process new data). Nexus Linguarum It’s a project (cost actions) founded by European Commission. A bunch of scholars at international level collaborate for finding a way to make the distributed linguistic data science. LDS = subfield of “data science” that provides a formal basis to the analysis, representation, integration and exploitation of linguistic data for:
With linguistic data we can: analyze them, represent them, integrate them and exploit them. All of this for 2 main aims:
this idea rather than the explicit. It deals with statistics, distributional semantics and embeddings. In this type of representation, words are not represented by an explicit tag (noun; gender = masculine), but they’re represented by sequences of numbers. Words having similar sequences of numbers are similar. Words tend to have something in common if they behave similarly in data. We have a collection of data and we say that words like Rome, Paris and New York behave similarly and share some common context, so they are represented by a similar sequence of numbers
categories, senses, concepts, ontologies (= formal descriptions of what exists, of a
piece of reality), dictionaries, terminologies. We can say if a text is made of words. Formal descriptions of a piece of reality are made of explicit classes. There’re also subcategories between categories and so on. We abstract and provide a formal abstract representation of a piece of reality LDS is at the point of joining computer science, linguistics, mathematics, statistics and linguistic data. This is the reason why, there will be no more separations between hard science and humanities. ALAN TURIN (1912-1954) He worked on different topics:
In the late 40s Father Busa met Watson and in those years Father Busa started to send letters around the world asking colleagues to provide him with some support regarding his project. In the Father Busa’s archive at University Cattolica we have some letters, which basically focus on the fact that after the publication of the Index Thomisticus, it could be possible to access the data of Thomas Aquinas like never before. CORRESPONDENCE … BUT SOMEONE IS SKEPTICAL
Through these letters in the archive, we can see that there were also some skeptical letters like for example a letter from a Jesuit of Loyola University in Los Angeles. In this letter they didn’t understand why Busa wanted to analyze all the words, so both content words and function words (which don’t have a meaning in themselves). Through some of these letters we can see that humanities and hard sciences were considered two different things, but right now this separation doesn’t make same anymore, now they’re strictly related. This letter from Los Angeles shows this separation since they believed that building the Index Thomisticus was just a mechanical labour, but it’s not because every time we try to make a computer process automatically, linguistic data, this compasses us to deeply understand the language, so the linguistic data that we have to process. It’s an intellectual labour and not just a mechanical one. In the letter the Jesuits didn’t understand that the project needed a deep understanding of the linguistic data. At that time, it was a new idea to create a collection of all words of a text from an author. We have to deal with all the empirical documentation that we want to make research on. Father Busa said that research in the humanities is sometimes like Matelda , a young woman who Dante and Virgilio meet in the Paradiso Terrestre. She picks up flowers randomly in a field and Father Busa said that sometimes humanities researchers are like her because use just some samples of data and on the basis of those samples, build their own intuitions. Instead, computational linguists want to know how many flowers are there, meaning how many and which type of data they deal with. It’s a methodological way of research. It’s not only that all data are considered, but also the fact that the whole process must be replicable : we put someone in the condition of redoing what we did for our research. Someone can trust us, but can also check if what we did is correct or not. This is the scientific method , which requires the replicability of the process. Replicability makes the humanities really a scientific field. Most researches in the humanities so far haven’t been replicable.
powerful and processing a lot of data took a lot of time (days)
compels you to expand your own language
Processing language with a computer requires to be even more humanist. It compels us to understand ourselves. We must understand in detail our object of research, language. Sometimes the most conservatives of humanists consider machines like monsters. They consider automation applied to literary science as something brutal. Thanks also to CL hard sciences and humanities started to communicate again. Some of the questions from Father Busa couldn’t be answered at his time because they worked with just samples of data. They couldn’t do Treebanks, tagging or summarization (embeddings = put together words based on grammatical category). Today we can partially answer the requests from Father Busa. He believed that the revolution of processing language makes us aware that we have too little knowledge and language knowledge. He also believed that this revolution would have had a great impact on the economic world with the processing of a big amount of data. It’s not just a matter of science, it’s also a matter of quality. We can process data like never before and this impacts on economics. Transforming an idea in a practical methodology to use in a production in series would have had an impact on the economic field. Great ideas needed to be transformed in a methodology to be used in a series production. There’re intellectual problems, and we have to cast them as experiments. We also must raise a new linguistic awareness. Father Busa also talks about production, exchange and defense. And he’s not talking about humanities here but about economics, and socio-politics. They require information retrieval (finding quickly the information that we need). Father Busa said that we’re going towards a society that will be surrounded by data and so information retrieval will be crucial (today it’s offered by Google). We need to know statistical information about our data in a more systematic, humanistic and useful way. CL for Busa needed to be more formal, more helpful. It’s a matter of quality and not just a matter of speed. In order to have a better quality of the atomizing process of linguistic data, we need a process that creates interpretation of the empirical evidence produced by data. In 1983 Father Busa said that CL will be able to perform automatic analysis of a huge amount of linguistic data. And that is exactly what we’re living today. FATHER BUSA’S MAIN AIM Computers are not only meant to speed up operations or minimize the work of researchers or obtain the same level of quality as before. We don’t have to repeat the same tasks as before in a quicker way, instead we have to enhance the quality and depth of research. We want to change methodology of processing linguistic data. GREAT EXPECTATIONS In the 50s there were great expectations. They used punched card, which were made
through specific machines. In the 60s Father Busa punched the all Opera Omnia of Thomas Aquinas.
1966 is a fundamental turning point in history of CL. After the Second World War, when the Cold War started, one of the first aims of computational linguistics was machine translation (MT) for Cold War purposes, translating from English to Russian and reverse, so the US funded research for machine translation for almost 20 years, expending a lot of money. In 1966 a committee was launched to make a point on the state of the art of MT: the government wanted to know if all this funding had some results or not.
machine translation in the area of what today we call computational linguistics. David Hays, one of the ALPAC members, is said to have named the discipline, but the origin of the name is something obscure. This committee in the report said that MT was still a too high-level task for the state of the art of CL and computational linguists were not able to perform it, they couldn’t perform automatic MT. So, the dream of MT was radically stopped in 1966 after the ALPAC report. But this made the community realize that they needed to work on the very fundamental layers of linguistic analysis, so on the automatic processing of levels like morphology, syntax, lexicon and so on. Therefore, the ALPAC report didn’t stop the funding to CL at all, it stopped the funding just to MT. MT is a very difficult task and today we’re not completely able to do it completely right. In 1966 they started again from the fundamentals of CL dividing them in layers and following a discrete method of analysis, so the tasks were separated into many different tasks. In current LLMs like ChatGPT instead we have a continuous analysis: there’s just one model that performs all the layers. The impact of the ALPAC report was so huge that in 1968 the name of the international association of computational linguistics was changed: from AMTCL
the name of the main world association.
This is a very turning point in CL: in the 40s there was a great confidence in machines, but in the 60s they understood that they couldn’t do everything with machines yet. So they started again from the basic layers. From the 60s until 10 years ago, CL worked on single tasks. Today with LLMs and AI, things have changed. IBM MEETING 1972 (PISA)
researches, instead we have to use the whole text in order to have a full overview. Father Busa wanted an empirical analysis of data in order to make some intuitions
meaning there’re grey areas especially dealing with linguistics facts. For example, a participle can be a noun, an adjective or a verb. We need to decide the criteria to assign values (everything deals with the confrontation of data) THE CENTRAL ROLE OF DATA Data is everywhere and so we have to:
knowing them (for example we can process a text in Chinese without knowing the language) but it depends on the type of task we have to do. It’s good to perform some close reading before and after distant reading: close reading is the classical reading, one word after the other, distant reading is reading the text according to its quantitative features (for example the level of lexical richness)
makes it difficult and makes the rule-based approach so poor in terms of accuracy
don’t have to trust them blindly. We have to know the accuracy rate and the reliability of the NLP toll. We must validate the data and check their quality
analyzing, but the Perspectivist Approach: we live in the time of open data science. Before corpora were private treasures and they weren’t shared. Today corpora are openly accessible to others. It’s not just a matter of democracy, but it’s also a vicious cycle, because if I publish a corpus, other people can improve my work
We’re cast in intellectual problems into experiments. In many cases research in the humanities means research dealing with data. And most of these data are linguistic data, that can be studied with a machine. To do an example we must follow the scientific method, also in the humanities
the same conditions to arrive at the same output result. I have to put the others in the condition to replicate exactly what I say
difference means (by evaluating an algorithm on a new dataset). The question and the approach are the same. I can change the data and use the same method. It’s the same experiment but on a new set of data
different approach
results. The experiment is different, as just some parts of it remain the same (tools, scripts, data). We reuse some parts of an experiment in another one
Nobody has a knowledge of language to be fully confident in processing it with a computer. Empirical results are just the starting point to do something else. The challenge is not to do things faster, but better (it’s a matter of quality). We’re not dealing with Digital Humanities but with Computational Humanities and not with Digital Linguistics but with Linguistic Computing:
contemporary technologies but it’s limited. In this field they work exactly like before but with machines
are tolls that require a new methodology. It represents a major departure from traditional research in the humanities CLIMBING THE PYRAMID DIKW pyramid (also known as the DIKW hierarchy, wisdom hierarchy, knowledge hierarchy, information hierarchy, information pyramid and data pyramid) refers to a class of models for representing structural and/or functional relationship between data, information, knowledge and wisdom.
world; it holds a conference each year and the acceptance rate of papers is 25%
the pupil of Father Busa
Italiana di linguistica computazionale
is basically a competition on a shared NLP task; it’s very important to get recognition There are many conferences in the CL community, also because the community is very young and dynamic. Some of the conferences are:
used data formats in CL
corpora because of the limited memories of computers. Today everybody collects full texts A corpus can be static or dynamic:
language is constantly changing LEXICA AND DICTIONARIES
Most of them are annotated : words linked to metadata that describe the words, like for example the definitions in dictionaries ONTOLOGIES They’re explicit representations of the relations of words and concepts (it’s like the Aristotelian taxonomy). Words are organized in categories and there’re relations between these categories, e.g. in WordNet words are collected in synsets CLARIN
It’s a way to find LR, it’s a language infrastructure, a big repository where people can store resources. There are also:
perform some NLP tasks
To select the text that enters our corpus, Sinclair says that we must follow the external criteria.
research project. In this case, we build the corpus for the aims of a specific research topic
We don’t have to select texts for the specific aims of a research process. A corpus shouldn’t be designed by the linguists working on a specific phenomenon, but by experts in the communicative patterns of the linguistic community USING CORPORA IN LINGUISTICS
Tognini and Bonelli in 2001 make the distinction between corpus-based and corpus- driven approach to the use of corpora in linguistic research. Corpus-based approach : it’s pretty related to the competence; here the data provided by corpora is used to confirm/refine/reject intuition-based linguistic theories. We already have our theory, that is built following our intuition, our competence, which is applied before the use of data. There’re 3 different approaches:
enrichment annotation Many different kinds of metadata:
insertions/omissions, corrections, normalizations must be recorded, meaning that for instance manuscripts use abbreviations very often and if we want to solve the abbreviations in the transcription, we must register that in the original source there were abbreviations and that in the transcription we have used its resolution
about bibliographic info, author, year, language, etc
sets, data availability, revision status, owner, etc. Tag sets = set of tags, also called labels, which are those used to record metadata; for instance for PoS we can use a label like noun (n), verb (v), adjective (a), and we have to explain that n corresponds to noun, v to verb and a to adjective
assigning labels like agent, patient, beneficent, mean, instrument. WSD stands for Word Sense Disambiguation: to disambiguate the meaning, so the sense of a word in each context WHY ANNOTATING? There’re theoretical purposes :
to refine, to reject, to confirm our theory
then we try to discover if there’re hidden features, so patterns of dependence, correlation among features. For instance, very often the fact that a noun precedes a verb calls the feature adjective. They’re hidden feature, we understand them from data There’re practical purposes :
not following the rule-based approach, but the corpus-driven approach
made by 1 million tokens; the number of lemmas in that corpus will be probably around 20 thousand and so we’re reducing the number of things we deal with ANNOTATION DESIDERATA
don’t need to be the fastest as ever, but we don’t have even to be the slowest so we must find a way to be sufficiently fast. Usually there’re some tools that help us like for instance an annotation interface, some NLP tools that perform the tasks for us
the same linguistic phenomenon is not always annotated, whenever we query the corpus searching for that phenomenon, we won’t find the occurrences of that phenomenon, since queries search for patterns. For instance, we can run a query that searches for all the words that are assigned the label “noun” and in the output we expect exactly this, but if we have assigned to some nouns the label “noun” and to some others the label “n”, this is a problem
This needs:
of the inter annotator agreement)
One of the things that concerns corpus linguistics is data format, meaning the different ways in which we can recall and store our data and metadata. There’re 2 different kinds of recording data and metadata, so 2 different kind of data formats:
and syntax). One advantage is that it’s easy manageable. One drawback is that it’s not easy to manage big data.
Now let’s see how the metadata of this sentence are recorded. Here we’re dealing with a treebank , which is a syntactic annotated corpus and in which we usually have the following layers of annotation: lemmatization, morphological tagging, PoS tagging and syntactic tagging. The annotation of syntax in treebanks is recorded in the form of rooted graphs, in other words in the form of trees. The relations between words in this sentence are represented in the form of tree and this representation is recorded here in the In-Line annotation. Let’s read it:
attribute of the element, which specifies some properties of the element. s stands for sentence , which is assigned the id that is the unique identifier of the sentence in the corpus. It says that it’s the fifth text of the corpus SCG (005.SCG), LB1 = book 1, CP-2++6 = chapter 26, N.-4 = number 4, 4-3. 5-2 = the sentence goes from the third word of the fourth line to the second word of the fifth line
tokens that are in the sentence