Flashcards
Exam Vocab

Cards in this deck (200)
- 1concordanceevery occurence of a word with context
- 2InterpreterProgram that will be running your python program
- 3Dispersion PlotDisplays location of word in the text, each instance represented as lines in the plot
- 4Token:Sequence of characters
- 5VocabularySorted list of all word types in a given text
- 6Lexical DensityNumber of distinct words divided by the total number of words
- 7Word TypeForm or spelling of the word independently of its specific occurence in a text. Unique item of vocabulary
- 8SlicingAccessing sublists/ manageable pieces of languages from large texts
- 9Frequency distributionFrequency of each vocabulary item in the text
- 10HapaxesWords that occur only once
- 11CollocationSequence of words that occur together unusually often
- 12Bigrams2-tuple of words
- 13Antecedentword, phrase or clause that is referred to by a pronoun or noun
- 14Word sense disambiguationwe want to work out which sense of a word was intended in a given context
- 157 challenges in automatic NLP UnderstandingWord sense disambiguation
Anaphora and pronoun resolution
Generating Language output
Spoken Dialogue systems
Semantic role labelling
Textual entailment
Text alignment - 16Anaphora and pronoun resolutionfind the antecedent of a pronoun or nounphrase
- 17Generating Language Output Taskse.g. question answering and machine translation
- 18Spoken Dialogue Systemsprocess, understand and reply to a given user input
- 19Semantic role labellingidentify arguments of a predicate and their semantic role in a sentence
- 20Textual entailmentwhether a hypothesis is supported by some text
- 21Text alignmentgiven document in german and english, as well as a bilingual dictionnary, we can automatically pair up the sentences
- 22Turing testit is a measure of a machine's ability to demonstrate human-like
intelligence. The test involves a human evaluator engaging in natural language
conversations with both a human and a machine, without knowing which is which. If
the evaluator is unable to reliably tell which is the machine and which is the human,
the machine is said to have passed the Turing test. - 23Gutenberg corpus25.000 free electronic books
- 24Web and Chat TextSmall collection of web text including different levels of jargon
- 25Brown Corpustext from 500 source categorized by genre, e.g. news, editorial etc
tagged corpus - 26Stylisticsstudying systematic differences between genres
Brown corpus is useful for this - 27Reuter Corpusnews docuemnts classified into 90 topics and grouped into training and test texts
- 28Inaugural address Corpuscollection of all US presidential addresses
- 29Annotated Text CorporaA text corpus containing linguistic annotations, representing POS tags, named entities, syntactic structures, semantic roles and so forth, e.g. brown corpus
- 30Corpora in other languages: udhrUniversal declaration of human rights in over 300 languages
- 31Different types of text corpora

- 32Conditional FrequencyCollection of frequency distributions for different conditions, e.g. category of the text. Visualized via tables, multi-line plots or cummulative word length distributions
- 33Generating random text with bigramsUsing a conditional frequency distribution to create a table of bigrams from a text, by treating each word as a condition, i.e. a freq dist over the words following a word. By appending the most likely word according to the distributions we can generate random text using this distribution.
- 34Lexical entryheadword (aka. Lemma) and additional information (such as POS and sense definition)
- 35Glossbrief definition or explanation of a word phrase, often provided in a different language to aid in understanding a text or speech
- 36Lemmabase or root form of a word, used to reduce the dimensionality of text data and imporve performance of NLP models by representing multiple inflected forms of a word with a single base form
- 37Homonymstwo distinct words having the same spelling
- 38stopwordshigh-frequency words that we sometimes want to filter out before further processing
- 39Pronouncing Dictionaryslightly richer kind of lexical ressource, table or spreadsheet containg a word with some additional properties per row
- 40Tabular lexiconSwadesh wordlists, lists of about 200 common words in several languages
- 41Shoebox and Toolbox Lexiconcollection of entries, consisting of one or more fields. Most fields are optional or repeatable, meaning this kind of lexicon can not be treated as table or spreadsheet
- 42WordNetsemantically oriented dictionary of English, similar to a traditional thesaurus but with a richer structure
- 43SynonymsTwo words are synonyms if they have the same meaning
- 44synsetsynonym set, collection of synonymous lemmas
- 45Unique beginners or root synsetsin WordNet these are words such as Entity, State, Event (very general concepts) without hypernyms
- 46Lexical relationsHypernyms, Meronyms, Holonyms and Hyponyms, as they establish relations between synsets
- 47Hyponymsa more specific concept, i.e. given the synset motorcar a (immediate) hyponym might be a motor
- 48Hypernymsmore abstract concept, e.g. given motorcar a hypernym may be vehicle
- 49Meronymsin wordnet: synset relation linking an item to the synset which it is part of, i.e. linking wheel to car
- 50Holonyms:in wordnet: synset relation linking an item and the things it contains, i.e. linking car to wheel
- 51Entailmentsrelationship between two statements or propositions in which one statment logically follows from or is implid by the other
- 52Antinomyrelationship between two opposites such as demand and supply
- 53Semantic similarityscore in the range of 0-1 based on the shortest path connecting the concepts in the hypernym hierarchy
- 54Tokenizationbreak up the string into words and punctuation
- 55Extracting text from binary formatsDownload the page
strip HTML
Trim useless content (e.g. introduction)
Tokenize the text
Normalize the words
Build the vocab - 56Text normalizationconverting text to lowercase, removing punctuation, stemming or lemmatization, removing stop words etc
- 57Sequencelists (mutable) and strings (immutable) are sequences in Python
- 58Code pointunique numerical identifier assigned to a character or symbol in a character encoding system. Unicode supports e06 code points
- 59Decodingtext in files will be in a particular encoding, decoding transforms that into Unicode
- 60Encodingtranslating from Unicode into a particular Encoding
- 61Glyphsfrom a Unicode perspective, characters are abstract entities that can be realized
- 62wildcard "."symbol matching any single character when looking for a specific format in the tokens
- 63Textonymstwo or more words entered with the same sequence of keystrokes (e.g. given T9 on a phone)
- 64Kleene closure"+" means one or more instances
"*" zero or more instances - 65Raw stringprefixing a string with r ignores all special characters inside
- 66Stemsbase form of a word after it has ben stripped of inflections (suffixes or prefixes)
- 67Popular StemmersPorter and Lancaster Stemmer
- 68LemmatizationWordNet Lemmatizer removes affixes only if the resulting word is in its dictionary. This additional checking process makes the lemmatizer slower than standard stemmers
- 69Segmentationdividing a corpus into different elements, such as sentences or tokens
- 70Word segmentationparticularly present in chinese. Processing of the spoken language, segmenting a continuous speech stream into individual words. In speech recognition the words or not known in advance!
- 71Objective functionscoring function based on the size of the lexicon and the amount of information needed to reconstruct the source text from the lexicon
- 72Simulated annealing in word segmentationoptimization method in used in word segmentation to find the optimal segmentation of a text by iteratively making small changes to the segmentation and accepting or rejecting them based on their likelihood
- 73String formatting expressionspermits to manipulate the format of a string, especially useful when the elements are printed in tables
- 74Conversion specifiers%s and %d symbols
- 75Format stringsstrings containing conversion specifiers
- 76Text WrappingOutput of our program is text-like, instead of tabular it will usually be necessary to wrap it so that it can be displayed conveniently
- 77Tupleimmutable sequences
- 78RecordCollection of different fields relating to some entity
- 79Generator expressiongenerates the required elements without preallocating a space in memory to the item
e.g. finding item of max length in a text corpus (only store the longest word so far) - 80Call-by-valuepython interprets function parameters as values
- 81LGB rulerule of function name resolution:
Local Global Built-in - 82Defensive programmingadding assertions to a program that helps you find logical errors
- 83Doctest blockIllustrates the use of the function and the expected output
- 84Lambda Expressiondefine functions as arguments to other functions
- 85Stack tracepinpoints the location of program execution at the time of the rror
- 86Debuggertool to monitor the execution of your program, specify line number where execution will stop and step through sections of code and inspect the value of variables
- 87regression testingmaintain a suite of test cases to spot where a change to the code has an unintended side effect of breaking something that used to work
- 88Divide and ConquerAttack a problem of size n by dividing it into two problems of size n/2, solve these problems and combine their results into a solution to the original problem
- 89Recursiondefine a function f, simplifying the problem and calling itself to solve one (or an easier amount of) instance of the same problem and then recombine this into a solution for the original problem
- 90Letter triedata structure that can be used for indexing a lexicon, one letter at a time. If trie contained a letter trie, then tried ['c'] would be a smaller trie which held all words starting with c
- 91Dynamic programmingUsed for problems containing overlapping subproblems. Instead of computing solutions to these subproblems repeatedly we store them in a lookuptable. Bottom-up and top down approaches are possible
- 92Bottom-upSolve smaller subproblems on the way to the original larger problems
- 93Top-down or memoizationbreak down a problem into smaller subproblems, saving their solutions in a table and recursively solving them to find the solution to the original problem
- 94Latent semantic analysisMethod using Numpy's singular value decomposiiton to help identify implicit concepts and relationships in a document collection
- 95NetworkXutility package for visualization when working with a wordNet dictionary or other complex networks
defining and manipulating graphs - 96Space-time trade-offin maintaining a vocabulary list. If you need to process an input text to check that all words exist in an existing vocabulary, the vocabulary should be stored as a set, not a list
- 97POS taggingclassifying words into their parts of speech and labelling them accordingly
- 98word classes/lexical categoriesparts of speech
- 99Tagsetcollection of tags used for a particular tasks
- 100POS taggerprocesses a sequence of words and attaches a POS tag to each word
- 101Adjectivesdescribe nouns and can beused as modifiers or as predicates
- 102Adverbsmodify verbs to specify time, manner or place of an event described by the verb. Can also modify adjectives
- 103Dictionarydata structure: key -> value, used to map arbitrary types
- 104types of Automatic taggingDefault tagger
regular expression tagger
lookup tagger - 105Default taggerassigns the same tag to each token
- 106regular expression taggerassigns tags to tokens based on matching patterns. For instance words ending in "ed" might be the past participle of a verb and words ending in " 's " are posessive nouns
- 107Lookup Taggercompute the tag for the M most frequent words in a text. Knowing those you have already tagged a majority of the text (for M big enough)
- 108Backoffif the look-up table tagger does not find a query, it will use a default tagger
- 109Gold Standard datasetEvaluate the performances of a tagger one uses a corpus that was manually annotated and accepted as a standard against which the guesses of an automatic system are assessed. The tagger is regarded as being correct if the tag it guesses is the same as that gold standard tag
- 110Unigram Taggingfor each token, assign a tag that is most likely for that particular token. The training process involves inspecting the tag of each word and sotring the most likely tag for any word in a dictionary that is stored inside the tagger
- 111N-gram Tagginggeneralization of unigram tagger whose context is the current word together with the pos tags of the n-1 preceeding tokens. It takes the context into account to choose the most likely tag
- 112Precision/recall tradeoffMetric/Concept in machine learning and information retrieval that refers to the proportion of precision and recall
- 113PrecisionTrue positives / All positive tags
how many items that we identified as relevant were actually relevant - 114RecallTrue positives / Actual positives
how many of the relevant items were identified as such - 115Combining taggersCombine different taggers to improve results
- 116Out-of-vocabularylimit the vocab of a tagger to the most frequent n words, replacing everything else with "UNK"
- 117Confusion matrixEasy visualization of tagger performance that shows precision and recall in matrix form
each cell [i,j] indicates how often label j was predicted when the actual label was i - 118Brill Tagging (Transformation-based tagging)Deal with sparsity that arises when using n-gram tagger. Guess the tag of each word, go back and then fix mistakes. Does not count observations but compiles a list of tranformational correction rules
- 119How to determine category of a wordMorphological clues: suffixes
Syntactic Clues: when do words occur
Semantic clues: context of occurence - 120Open Class Wordse.g. Nouns, can acquire new elements
- 121Closed Class Wordse.g. prepositions, determiners, modals, personal pronouns, can not acquire new elements
- 122Morphosyntactictaggers can learn information about the kind of morphological markings that words receive by their syntactic role
- 123Classification taskchoosing the correct class label for given input
- 124Supervised classifierclassifier trained on labeled data
- 125Feature extractorfunction that builds a dictionary containing relevant information about a given name
- 126Feature setmaps feature names to their values. Feature names are case sensitive are case sensitive strings providing short description of the feature, while the values can be anything, e.g. binary, integers
- 127OverfittingDescribes a model that performs very well on training data but does not generalize well. Common reasons are a too complex model on simple data, i.e. more features than samples (tends to rely on ideosyncrasies), or excessive training
- 128Error AnalysisSelect a development set containing training and dev-test data from the corpus. By analyzing performance on these sets we can perform error analysis
- 129Document Classificationwe can build classifiers hat will automatically tag new documents with appropriate category labels
- 130POS tagging Classifierclassifier that tags pos of a word using subword features and a classified corpus
- 131Exploiting Contextfeature detector examines context in which a word appears to determine which pos tag to assign
- 132Joint classifier modelschoose appropriate labelling for a collection of related inputs
- 133Sequence classifier modelsCan be used to jointly choose pos tags for all the words in a given sentence
- 134Hidden Markov ModelsMethod of sequence classification. Assigns scores to all possible sequences of pos tags and chooses the sequence whose overall score is the highest. They also look at both the inputs and the history of predicted tags. They generate a probability distribution over the tags.
- 135Maximum entropy marko models and linear-chain conditional random field modelsHidden Markov Models require that the feature extractor only looks at the most recent n tags. Given this restriction it is possible to utilize a dynamic programming approach to efficiently find the most likely tag sequence. For each consecutive word index i a score is computed for each possible current and previous tag.
- 136Sentence Segmentationcan be viewed as a classification task for punctuation: whenever we encounter a symbol that could end a sentence, such as a period or a questionmark, we have to decide whether it terminates the preceding sentence
- 137Identifying Dialogue Act TypesUtterances are a type of action performed by the speaker. These posts have all been labelled with one of 15 dialogue act types such as "Statement", "Emotion", "ynQuestion" and "Continuer". We can therefore use this data to build a classifier that can identify the dialogue act types for new instant messaging posts
- 138Recognizing Textual EntailmentThe task of determining whether a given piece of text T entails another text called the hypothesis, i.e. does our text imply this hypothesis
- 139AccuracyMeasures the percentage of inputs in the test set that the classifier labelled correctly
- 140True positivesrelevant items that were correctly identified as relevant
- 141True negativesirrelevant items that wer correctly identified as irrelevant
- 142false positivesirrelevant items that were incorrectly identified as relevant
- 143False negativesrelevant items that were incorrectly classified as irrelevant
- 144(k-fold) Cross Validationperform multiple evaluations on different test sets (folds), combine the scores from those evaluations to obtain an estimate for the generalization error
- 145Decision TreeSimple flowchart that selects labels for input values. It consists of decision nodes, which check feature values, assign labels by cascading down the tree and root nodes where the split starts
- 146Decision stumpdecision tree that consists of a single node that decides how to classify inputs based on a single feature
- 147Information gainmeasures how much more organized the input values become when we divide them up using a given feature
- 148Naive Bayes Classifiersbegins by calculating the prior probability of each label and then computes the likelihood score for each label, choosing the highest value
- 149Likelihood in Naive Bayes ClassifierP(label|features) = P(features,label)/P(features)
- 150Naive Bayes assumtion (indendence assumption)We assume that the Naive Bayes Classifier considers the features as totally independent from each other
- 151Smoothing techniquesExpected Likelihood Estimation adds 0.5 to each count(f,label)
Heldout Estimation uses a heldout corpus to calculate the relationship between feature frequencies and the feature probabilities - 152Binningconverting numeric features into binary (boolean) features
- 153Weights in the Naive Bayes Classifiernormal weights, initialized at some starting value and the final weights after training can be used as a measure of contribution for each feature
- 154Maximum Entropy ClassifierCalculates the likelihood of each label for a given input value. To do so it computes the joint-feature scores and multiplies the ones compatible with the input. It looks for the set of parameters that maximizes the total likelihood of the training corpus.
- 155Joint Featureeach combination of labels and features receives a parameter
- 156Maximum entropy principleAmong the distributions that are consistent with what we know, we should choose the distribution that maximizes entropy
- 157Generative ClassifierBuilds a model that predicts label and input occuring together.
Joint probability of input and label - 158Conditional Classifiersbuild models that predict conditional probability of a label given some input
e.g. Maximum entropy classifier - 159Modelling Linguistic Patternseither ML models or analytical models
- 160Structured DataRegular and predictable organization of entities and relationships
- 161Information ExtractionConvert the unstructured data of natural language sentences into structured data and then get meaning from the text
- 162Information Extraction - Process

- 163Named entity detectionIdentifying specific real world objects such as people, locations, organizations, products etc in text
- 164Relation DetectionSearch for specific patterns between pairs of entities that occur near one another in the text and use those patterns to build tuples recording relationships between the
- 165syntax errorsomething in the code is not conform with the syntax required by the language
- 166control structuree.g. if statement
- 167language understanding components

- 168corporalarge bodies of linguistic data
- 169comparative wordlistExample for a tabular lexicon
- 170antonymyopposites
supply and demand
rush and linger
horizontal and vertical
staccato and legato - 171multiword expressionsmall phrase whose meaning and other properties cannot be predicted from its words alone, e.g. part-of-speech
- 172mutable python typesList
Dictionary
Set - 173Immutable python typesIntegers
Strings
Tuples - 174Scope of a variableVariable defined inside the function body is only accessible inside that function
- 175consecutive classification aka greedy sequence classificationfind most likely class label for the first input and use that answer to find the best label for the next input and so on.
- 176F-Measurewhich combines the precision and recall to give a single score
(2*Precsion*Recall)/(Precision+Recall) - 177Entropyhigh if the sample has high intersample variance, i.e. there are a lot of different labels
Defined as the sum of the probability of each libel times the log probability of that label - 178PruningRemoving nodes from a decision tree that do not increase performance in order to decrease overfitting phenomena
- 179Zero countswhen a feature never occurs with a certain label a sample with said feature will never be attributed to that label
Can be problematic if this phenomenom is specific to the training set and no general truth - 180Double CountingAssumption of independence of feautres is not generally true and may lead to overestimations of contributions
can be solved by applying weights to the features - 181ChunkingBasic technique for entity recognition that segments and labels multitoken sequences into chunks
Usually selects a subset of tokens
Chunks do not overlap in the source text - 182Noun Phrase chunkingsearch for chunks corresponding to noun phrases
DT NN
DT ADJ NN
... - 183Chunk Grammarconsists of rules indicating how a sentence should be chunked
- 184Tag Patternsrules that make up a chunk grammar
- 185Chunking with regular expressionusing regexparser
starting from a flat structure, applies the chunking rules in turn, updating the structure until all rules have been invoked - 186chink"opposite of chunk"
Instead of defining what goes into a chunk we define what to exclude from a chunk.
E.g. excluding parts of a sentence that do not contribute to the meaning or are not part of a certain structure - 187Tags vs TreesBoth ways to represent chunk structures.
Tags give one full structure, while trees allow direct manipulation of each chunk as they are isolated constituents. - 188IOB TagsInside Outside Beginning
Used to represent chunk structures - 189CoNLL-2000 Chunking corpusprovides text corpora and methods to work with chunked texts, represent them in tree diagrams, as well as training and evaluation models/chunkers.
- 190Evaluation and baselines of chunkersWe check IOB accuracy, Precision, Recall and F-Measure.
A default chunker that creates no chunks, thus sets all samples to "O" is still correct for all tokens that would not be in any chunks (43.4% in the example) - 191Tree traversalstandard to use a recursive function
- 192Named entity recognitionidentify all textual mentions of named entities
- identifying boundaries of the named entiites
- identifying its type - 193Relation Extractionafter identifying named entities we want to extract the relations between them
- 194Linguistic Data and unlimited possibilitiesLanguage is ever changing and the amount of different sentence structures and therefore their meaning is unbounded
- 195Coordinate structuretwo phrases joined by a coordinating conjunction (and, but, or)
- 196Constituent Structurewords combine with other words to form units.
Noticeable when trying to substitute words in a sentence - 197ConstituentsComparable to the parent child relation in trees.
Immediate constituents of Sentence S are verb phrase VP and noun phrase NP - 198Context-Free GrammarDefine every constituent from the ground up. Sentences -> phrases -> word types -> specific words
- 199Structural Ambiguitymutliple structures can be created following the same grammar
-> prepositional phrase attachement ambiguity - 200Recursive grammarcategories appearing on the LHS of a production also appear on the RHS of a production
i.e. definition calls itself
Information
- Description
- Univerität Natural Language Processing Flashcards on Exam Vocab , created by Alex F on 20/06/2023.
- Created by
- Alex F
- Views
- 2
- Rating