Computational Linguistics Intro
- 39Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary challenge in teaching automatic human skills to computers?
39 questions
- 1
What is the primary challenge in teaching automatic human skills to computers?
Model answer
The more automatic a human skill is, the more difficult it is for humans to teach that skill to computers, leading to counterintuitive difficulties.
Explanation
Human skills that are performed automatically, such as recognizing a traffic light in an image, are surprisingly difficult for computers to master. This is because humans perform these tasks subconsciously, making it hard to codify the underlying rules or processes for a machine. In contrast, complex calculations or chess, which require deliberate human effort, are easier for computers because their logic can be explicitly programmed.
- 2
Contrast the ease of teaching computers aspects of language that are difficult for humans versus those that are easy for humans.
Model answer
Computers find it easy to learn new words (difficult for humans) but struggle with understanding language across typos, accents, or emotional nuances (easy for humans).
Explanation
Human language presents an interesting paradox for computers. Tasks that humans find challenging, like memorizing a vast vocabulary, are relatively simple for computers to process due to their capacity for data storage. Conversely, human tasks like adapting to variations in speech, understanding context, or discerning emotions, which are effortless for humans, are immensely difficult for machines due to the subtle and complex nature of these linguistic phenomena.
- 3
Define Natural Language Processing (NLP) and Computational Linguistics.
Model answer
Natural Language Processing (NLP) or computational linguistics refers to the programming of computers to process human language.
Explanation
Natural Language Processing (NLP) and computational linguistics are interchangeable terms describing the interdisciplinary field focused on enabling computers to understand, interpret, and generate human language. This involves developing algorithms and models that allow machines to interact with human language data in a meaningful way, bridging the gap between computer science and linguistics.
- 4
List several everyday applications where NLP is utilized.
Model answer
NLP is used in search engines, voice-activated home systems, spam filters, spell checkers, and predictive text.
Explanation
Natural Language Processing is integrated into many daily technologies. Search engines use NLP to understand user queries and retrieve relevant results. Voice assistants like Alexa or Siri rely on NLP for speech recognition and command execution. Spam filters analyze email content using NLP to identify unwanted messages. Spell checkers and predictive text features on keyboards also leverage NLP to correct errors and suggest words, enhancing user communication.
- 5
What is the initial step required to enable a computer to work with human language?
Model answer
The first step is to provide the computer with text, either by direct input or by transforming speech sounds, handwriting, or physical text into digital text.
Explanation
For a computer to begin processing language, it first needs the language data in a digital format it can interpret. This involves converting various forms of human communication into machine-readable text. This can be done by directly inputting text, or through technologies like speech-to-text for audio, handwriting recognition for handwritten notes, or optical character recognition (OCR) for printed documents.
- 6
Name the processes used to transform non-digital human language into digital text for computers.
Model answer
Speech to text, handwriting recognition, and optical character recognition (OCR) are used to transform non-digital human language into digital text.
Explanation
These technologies are crucial for converting human-generated content into a format that computers can process. Speech-to-text converts spoken words into written text. Handwriting recognition interprets handwritten input. Optical Character Recognition (OCR) converts images of text, such as scanned documents, into editable digital text. These initial conversions are fundamental for all subsequent NLP tasks.
- 7
What challenges are involved in the initial step of transforming physical text into digital text for NLP?
Model answer
This step involves discerning word and sentence breaks, such as distinguishing 'a moist towelette' from 'a moist owlet,' and identifying punctuation like periods versus flecks of dirt.
Explanation
Even the seemingly simple act of digitizing text presents complexities. Computers must accurately identify boundaries between words and sentences, which can be ambiguous in speech (e.g., homophones that sound similar but have different meanings when segmented differently). They also need to differentiate genuine punctuation from visual noise or imperfections in the source material, ensuring the integrity of the digital text.
- 8
After digitizing text, what are the two main tasks a computer needs to accomplish to understand language?
Model answer
The computer needs to figure out the meanings of the words and the relationships between them.
Explanation
Once text is digitized, the computer moves to semantic and syntactic analysis. Understanding the 'meanings of the words' involves lexical semantics, often requiring context to disambiguate homonyms (like 'bank' as a financial institution versus a river edge). Understanding the 'relationships between them' involves syntax and grammar, allowing the computer to parse sentence structure and grasp how words combine to form coherent ideas.
- 9
How does context play a role in a computer figuring out word meanings?
Model answer
Context is used to disambiguate between words like 'bank' (river vs. financial) or to distinguish between common nouns and proper nouns.
Explanation
Many words in human language are polysemous, meaning they have multiple meanings. Computers rely heavily on the surrounding words and phrases (context) to determine the correct sense of a word. For example, if a sentence mentions 'depositing money,' the computer knows 'bank' refers to a financial institution, not a riverbank. Context also helps identify proper nouns (e.g., 'Apple' as a company vs. 'apple' as a fruit).
- 10
What is the third major step in NLP after digitizing and understanding text, and what are examples of its applications?
Model answer
The third step is getting the computer to do something useful with the information, such as answering questions, translating languages, or finding directions.
Explanation
Beyond mere comprehension, the ultimate goal of NLP is often to perform a practical task. This 'doing something useful' stage involves applying the parsed and understood language data to specific applications. For instance, a chatbot might answer a user's question, a translation engine converts text to another language, or a navigation system processes a destination request. Each of these requires a distinct subsequent system to produce the desired output.
- 11
What happens to the processed language data within the computer before it is re-encoded into human language?
Model answer
All of this data gets produced in some abstract form that the computer understands, like a mathematical equation or some lines of code.
Explanation
Internally, computers don't 'understand' human language in the same way humans do. Instead, after processing, the linguistic information is transformed into a structured, formal representation that the computer's algorithms can manipulate. This could be a logical form, a semantic network, a statistical model, or code, allowing the computer to perform calculations or operations based on the input.
- 12
What is the final step in the NLP process, involving converting computer data back into human language?
Model answer
The last step is to re-encode the abstract data into natural human language, which can involve text generation and potentially speech synthesis.
Explanation
After the computer has processed the input and performed the desired task, the results need to be presented in a human-understandable format. This involves text generation, where the computer constructs sentences and paragraphs. If the user requires spoken output, text-to-speech technology is then used to convert the generated text into audible speech, often through speech synthesis.
- 13
Explain the advantage of splitting natural language processing into different steps.
Model answer
Splitting NLP into steps allows for the reuse of parts for other tasks and helps distinguish what needs customization for each human language from what can stay in computer code.
Explanation
Modularizing the NLP process offers significant benefits. By breaking down the complex task into smaller, manageable steps (like speech-to-text, parsing, text generation), individual components can be developed and optimized independently. A high-quality text-to-speech module, for example, can be used for diverse applications such as reading answers, translations, or directions. This modularity also facilitates identifying language-specific challenges versus universal computational problems, streamlining development and improving efficiency.
- 14
How can tools that perform only one or two NLP subtasks still be useful?
Model answer
They can be useful on their own, such as automatic captioners doing speech-to-text, screen readers doing text-to-speech, or search/translation skipping speech processing entirely.
Explanation
Not all NLP applications require the full end-to-end processing pipeline. Specialized tools focusing on a subset of NLP tasks can be highly effective. Automatic captioners primarily convert speech to text. Screen readers perform text-to-speech to assist visually impaired users. Search engines and translation tools often start with existing text, thus bypassing initial speech processing steps. This highlights the utility of individual NLP components.
- 15
Outline the analogous steps for natural language processing in signed languages.
Model answer
The steps could include sign-to-text, parsing signs, processing results for a computer, and rendering output back into signs.
Explanation
While less developed than for spoken languages, NLP principles can be applied to signed languages. This would involve converting physical signs (gestures, facial expressions, body movements) into a digital 'sign-to-text' representation. This digital data would then be parsed to understand its meaning and structure. The computer would process this information for a specific task, and finally, 'render the output back into signs' for human understanding.
- 16
What is a major challenge regarding the development of signed language NLP systems, similar to spoken languages?
Model answer
Just like with thousands of spoken languages, each of the hundreds of signed languages would still need to be supported separately.
Explanation
A significant hurdle for signed language NLP is the sheer diversity of signed languages. There isn't one universal 'sign language'; rather, there are hundreds of distinct signed languages (e.g., ASL, BSL, LSF), each with its own grammar, vocabulary, and cultural context. Developing effective NLP tools would require separate systems tailored to each individual signed language, similar to how different NLP models are needed for English, Spanish, or Mandarin.
- 17
Identify the fundamental misunderstandings that 'sign language translation gloves' often exhibit.
Model answer
The gloves misunderstand that signed language grammar involves more than hand shape, uses more than 26 letters, and that translation requires two-way communication.
Explanation
So-called 'translation gloves' fail because they oversimplify signed languages. Firstly, signed languages convey grammar through handshapes, facial expressions, and movements of the hands and arms relative to the body, not just handshapes alone. Secondly, they often only detect the 26 letters of the manual alphabet, which is only a small part of sign language vocabulary. Thirdly, effective translation facilitates two-way communication, but these gloves only translate signs to speech, neglecting the crucial speech-to-sign component for Deaf and Hard of Hearing individuals.
- 18
Why is relying solely on the manual alphabet insufficient for signed language translation?
Model answer
Signed languages use far more signs than the 26 letters of the manual alphabet, which is primarily used for borrowing technical words, not core vocabulary.
Explanation
The manual alphabet (finger-spelling) is a system for representing letters of a spoken language using handshapes. While it exists in many signed languages, it's typically used to spell out names, specific terms, or words borrowed from spoken languages, not as the primary means of communication. The vast majority of a signed language's vocabulary consists of distinct signs that represent entire concepts or words, not individual letters.
- 19
What ethical consideration is crucial for developing computational tools for signed languages?
Model answer
Computational tools for signed languages will only be good if Deaf people are consulted in their creation.
Explanation
For any technology related to signed languages to be effective, appropriate, and genuinely useful, the active involvement and consultation of Deaf individuals and researchers is paramount. They are the primary users and experts in their languages and cultures. Without their input, tools risk being poorly designed, based on inaccurate assumptions, and ultimately failing to meet the needs of the Deaf community.
- 20
Explain why a computer system, even if effective at NLP tasks, does not 'understand' language the way a human does.
Model answer
A computer only gives the appearance of understanding based on programmed instructions or statistical patterns, but it lacks the genuine comprehension and cognitive processes of a human.
Explanation
The 'rabbit pressing buttons' analogy illustrates this point. A computer may correctly respond to language inputs, but its 'understanding' is purely functional and based on algorithms or statistical correlations, not genuine meaning or consciousness. If presented with a task slightly outside its training, its 'understanding' can spectacularly fail because it lacks human-like cognitive flexibility, intuition, and background knowledge.
- 21
How did early approaches attempt to teach computers language tasks?
Model answer
Originally, computers were taught with long lists of specific rules, such as 'add -s for plurals' with many exceptions.
Explanation
Early NLP systems were primarily rule-based. Programmers would painstakingly create extensive sets of grammatical rules, lexical entries, and exceptions to govern how a computer processed language. This involved defining every possible linguistic pattern and its corresponding action. While logical, this approach became incredibly complex and difficult to maintain as the number of rules and exceptions grew.
- 22
Describe the modern approach to machine learning for language tasks.
Model answer
Modern approaches involve training computers on large datasets to learn statistical patterns and then testing their performance on new data.
Explanation
Contemporary machine learning for language relies on data-driven statistical methods. Instead of explicit rules, computers are fed massive amounts of text or speech data. They then learn to identify statistical correlations and patterns within this data. Their 'understanding' is a probabilistic inference based on what they've observed during training, rather than a rigid set of instructions.
- 23
What type of statistical machine learning has led to recent advancements in natural language processing?
Model answer
Neural networks, based on a simplified model of brain neurons, have driven recent leaps in NLP by figuring out relevant factors in training data.
Explanation
Neural networks are a powerful subset of machine learning inspired by the structure and function of the human brain. They consist of interconnected 'nodes' (neurons) organized in layers that process data. During training, neural networks adjust the strength of these connections to learn complex patterns and relationships in the data without being explicitly programmed with rules, leading to significant improvements in tasks like language translation and speech recognition.
- 24
What is a characteristic difficulty for humans in understanding how neural networks make decisions?
Model answer
Because neural networks figure out relevant factors for themselves, it's hard for humans to know exactly what patterns they are picking up on.
Explanation
The 'black box' problem is a key challenge with neural networks. While they are highly effective at learning complex patterns, their internal decision-making processes can be opaque. Humans can't easily inspect the 'weights' and 'biases' within the network to understand precisely why it made a particular decision or what specific features it prioritized. This lack of interpretability can be a limitation, especially in sensitive applications.
- 25
What kind of errors might an early-trained neural network make in language generation?
Model answer
Early in training, a neural net might make silly, non-human-like errors, such as returning 'eeeeeeeee' because it learned 'e' is the most common letter.
Explanation
During the initial stages of training, a neural network is still developing its understanding of patterns. It might identify superficial statistical regularities without grasping deeper linguistic structures. For instance, if 'e' is the most frequent letter in English, an untrained network might over-optimize for this, resulting in repetitive, nonsensical output, demonstrating a lack of true linguistic comprehension.
- 26
Define 'supervised learning' in the context of machine learning for language.
Model answer
Supervised learning uses parallel data with two corresponding parts matched by humans, such as text with audio or questions with answers.
Explanation
In supervised learning, the training data consists of input-output pairs where the correct output for each input is known and labeled by a human. For example, a speech recognition system might be trained on audio recordings paired with their exact text transcripts. This 'supervision' guides the model to learn the mapping between inputs and desired outputs, making it highly effective when ample labeled data is available.
- 27
What is a limitation of using supervised learning for NLP?
Model answer
It can be hard to find enough data that has both corresponding parts, as humans have to create all these pairs.
Explanation
The primary drawback of supervised learning is the resource intensity of creating labeled datasets. Human annotators are required to meticulously pair inputs with their correct outputs (e.g., manually transcribing hours of speech or translating millions of sentences). This process is time-consuming, expensive, and limits the scale and diversity of data available for training, especially for less common languages or specialized domains.
- 28
What is 'unsupervised learning' in machine learning for language?
Model answer
Unsupervised learning uses non-parallel data with only one component, like a large collection of text, audio, or video in one language.
Explanation
Unlike supervised learning, unsupervised learning deals with unlabeled data. The computer is given raw data (e.g., a massive corpus of text) and tasked with finding inherent structures, patterns, or relationships within it without explicit guidance. This might involve grouping similar words together, identifying topics in documents, or learning grammar implicitly. It's 'unsupervised' because there are no predefined correct answers for the machine to learn from.
- 29
Compare the availability and difficulty of use between parallel and non-parallel data for training computers.
Model answer
Non-parallel data is much easier to find but harder to use for training, while parallel data is harder to find but easier to use.
Explanation
Non-parallel data, such as vast amounts of raw text from the internet, is abundant and easy to collect, but extracting meaningful patterns for specific tasks is computationally challenging. Parallel data, with its human-matched input-output pairs (e.g., English sentences with their French translations), provides explicit examples for a model to learn from, making training easier and more direct. However, creating such paired data requires significant human effort, making it scarcer.
- 30
How do researchers often combine different types of data for machine learning, and what is this approach called?
Model answer
Researchers often use a mix of both: a smaller amount of parallel data to start, combined with a larger amount of non-parallel data. This is called semi-supervised learning.
Explanation
Semi-supervised learning leverages the strengths of both supervised and unsupervised methods. It begins by training a model on a limited amount of high-quality, human-labeled (parallel) data. Once the model has a foundational understanding, it then utilizes a much larger pool of unlabeled (non-parallel) data to further refine its learning and generalize patterns. This approach is efficient as it maximizes the use of readily available data while benefiting from initial expert guidance.
- 31
What is the foundational source of bias in machine learning data?
Model answer
All data gets created or gathered by humans, and humans have all sorts of biases, which can then be reflected in the computer's output.
Explanation
Machine learning models learn from the data they are fed. Since humans are the creators and curators of this training data, any existing biases, prejudices, or imbalances present in human society, culture, or historical records will inevitably be embedded within the data. The machine then learns and perpetuates these biases in its predictions and outputs, leading to unfair or inaccurate results for certain groups.
- 32
Explain 'historical bias' in machine learning with an example from language translation.
Model answer
Historical bias occurs when a real-world bias is reflected in computer output. For example, translating from Turkish (no gender pronouns) to English might default to 'he is a doctor' and 'she is a nurse' due to societal gender roles.
Explanation
Historical bias manifests when societal inequities or stereotypes from the past and present are learned by a machine learning model. In the given example, Turkish pronouns are gender-neutral. When translating to English, which requires gendered pronouns, the model might assign genders based on statistical patterns observed in biased training data (e.g., more male doctors, more female nurses in historical texts), thereby reinforcing gender stereotypes even if the original Turkish sentence was neutral.
- 33
Describe 'representation bias' in the context of language tech tools.
Model answer
Representation bias is when certain groups are not well-represented in the training data. For example, only a few large languages are well-represented in language tech tools, leaving out many other spoken and all signed languages.
Explanation
Representation bias arises from imbalances in the composition of training datasets. If data is predominantly collected from or focused on a specific demographic, language, or region, the resulting model will perform poorly or unfairly for underrepresented groups. In NLP, this means that while tools might be robust for languages like English or Mandarin, they often fail for less resourced languages or completely ignore entire language modalities like signed languages due to a lack of sufficient training data.
- 34
What is 'measurement bias' and how does the Bible's use as training data illustrate this?
Model answer
Measurement bias occurs when training data features don't accurately reflect what's being sought. Using the Bible as training data can produce strange results in Google Translate because its language style differs significantly from day-to-day conversation.
Explanation
Measurement bias refers to errors or inaccuracies in how features or labels are defined or collected in the training data, leading to a model learning incorrect associations. If religious texts like the Bible, known for their archaic language, specific vocabulary, and formal style, are a primary source of training data for general translation, the model might produce translations that are overly formal, anachronistic, or simply unnatural for contemporary everyday usage, as it learned from a skewed 'measurement' of language.
- 35
Define 'aggregation bias' and provide an example related to English speech-to-text programs.
Model answer
Aggregation bias is when combining data from several groups with different characteristics leads to a single system that doesn't work well for all. For instance, training an 'English' speech-to-text program on all English varieties might favor Standardized English over African American English.
Explanation
Aggregation bias occurs when diverse subgroups within a larger dataset are treated as a homogeneous whole. When a model is trained on aggregated data without accounting for underlying differences, it might perform optimally for the dominant subgroup while underperforming for others. For speech-to-text, if all English dialects are lumped together, the system might learn patterns most common in Standardized English, leading to higher error rates or poorer performance for speakers of other English varieties, such as African American English, whose linguistic features are distinct.
- 36
How does 'evaluation bias' impact the usefulness of NLP programs, using the example of predictive text?
Model answer
Evaluation bias happens when success is measured by something users don't find useful. For predictive text, an English-first approach might focus on predicting the next word, but predicting the next morpheme would be better for languages with longer words.
Explanation
Evaluation bias occurs when the metrics used to assess a model's performance do not align with its real-world utility or the needs of its target users. For predictive text, if researchers from an English-centric perspective evaluate success based on predicting whole words, this metric might not be suitable for agglutinative languages (like Turkish) where words are much longer and composed of many morphemes (meaningful units). A morpheme-level prediction would be more practical and useful for speakers of such languages, highlighting a misalignment between evaluation and user needs.
- 37
What is 'deployment bias' and illustrate it with an example of style analysis tools.
Model answer
Deployment bias is when a system, created for reasonable purposes, is misused after its release. Style analysis tools used to identify authors can be misused to identify anonymous whistleblowers.
Explanation
Deployment bias arises not from the inherent design of the system but from its application in unforeseen or unethical ways. A text style analysis tool, for instance, might be legitimately designed to help attribute authorship of historical documents. However, if that same tool is deployed to analyze the writing style of anonymous individuals to reveal their identity, it becomes a misuse of technology with potentially harmful consequences, demonstrating deployment bias.
- 38
What is the initial step in addressing biases in computational linguistics?
Model answer
The initial step is being aware of these sources of bias.
Explanation
Recognizing and understanding the various types of biases (historical, representation, measurement, aggregation, evaluation, deployment) that can infiltrate machine learning models is the fundamental prerequisite for developing strategies to mitigate them. Without this awareness, biases can unknowingly persist and propagate through technological systems, perpetuating unfairness and inaccuracies.
- 39
Why is ethical consideration especially important in computational linguistics?
Model answer
Ethical consideration is crucial in computational linguistics because technology interacts so much with our daily lives, giving researchers a responsibility to deeply consider its effects.
Explanation
Computational linguistics, particularly NLP, is deeply embedded in everyday technologies that influence how we communicate, access information, and interact with the world. Given this pervasive impact, researchers and developers have a significant ethical responsibility to consider the societal implications, potential harms, and equitable access of their creations. Addressing biases and ensuring fairness in these technologies is paramount to prevent negative consequences for individuals and communities.

Ask anything
We've read this whole study set, so questions about it get the best answers.