DOC PREVIEW
UT CS 378 - Features and Unification

This preview shows page 1-2-24-25 out of 25 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 25 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Features and UnificationSolving the Agreement ProblemSlide 3Subcategorization of VerbsSubcategorization of Verbs – ExampleSpecifying Control InformationSubcategorization of Nouns and AdjectivesReflexive PronounsProperties of a Good SolutionFeature StructuresReentrant Feature StructuresUnificationUnification of Reentrant Feature StructuresSubsumptionTwo Views of SubsumptionAnalogy to Theorem ProvingUnification Example – ConjunctionsAdding Unification to Grammar RulesApplying the Grammar RuleExample of Applying the RuleFeatures Don’t Have to Be IdenticalWhat Features to Unify and Pass Up?Implementing Unification in ParsingAdding Unification to the Earley AlgorithmWhat if We Need a Basic CFG?Features and UnificationRead J & M Chapter 11.Solving the Agreement Problem•Number agreement: S  NP VP * Mary walk. [NP NUMBER] [VP NUMBER]NP  det N * those flight [DET NUMBER] [N NUMBER]Without this check, we’d have more ambiguity:Flying planes is dangerous.Flying planes are dangerous.Solving the Agreement ProblemSubcategorization of verbs:VP  V VPto * Mary decided going. [subcat VPto]VP  V VPing Mary imagined going [subcat VPing]Subcategorization of VerbsSubcategorization of Verbs – ExampleSubcat ExampleQuo asked [Quo “What was it like?”]NP asking[NP a question]Swh asked[Swh what trades you’re interested in]Sto ask [Sto him to tell you]PP that means asking [PP at home]Vto asked [Vto to see a girl called Evelyn]NP Sif asked [NP him] [Sif whether he could make]NP NP asked [NP myself] [NP a question]NP Swh asked [NP him] [Swh why he took time off]Specifying Control InformationJohn persuaded Mary to go.John promised Mary to go.Who does the going?Subcategorization of Nouns and AdjectivesJane has a passion for old movies.Jane has an interest in old movies.Orth Passion Cat NHead Subcat [Cat PP] [Head [Prep for]Reflexive Pronouns Mary wants to take care of herself.* Mary wants to take care of himself.* John and Mary want to take care of himself. Mary wants John to take care of himself.Properties of a Good SolutionWe want a solution to this problem that:•avoids combinatorial explosion of features•is declarative so that:•it can be used for both recognition and generation•the linguistic facts can be reused if we change parsing algorithms to suit particular task environments•has a clean, formal semantics so that we can make correct statements about what the system will do.So we reject simply writing code to handle the various cases.Feature Structures3PERSONSGNUMBERAGREEMENTNPCAT3PERSONSGNUMBERNPCATReentrant Feature Structures 131AGREEMENTSUBJECTPERSONSGNUMBERAGREEMENTHEADSCATUnification[NUMBER SG]  [NUMBER SG] = [NUMBER SG][NUMBER SG]  [NUMBER PL] Fails[NUMBER SG]  [NUMBER [] ] = [NUMBER SG][NUMBER SG]  [PERSON 3 ] = NUMBER SGPERSON 3Two feature structures can be unified if there is no conflict between them.Unification of Reentrant Feature Structures 131AGREEMENTSUBJECTPERSONSGNUMBERAGREEMENTSGNUMBERPERSONAGREEMENTSUBJECT3= 131AGREEMENTSUBJECTPERSONSGNUMBERAGREEMENTS  NP VPSubsumptionA less specific (more abstract) feature structure subsumes an equal or more specific one. If F subsumes G, then we write F  GWe can define unification in terms of subsumption: F  G is the most general feature structure H such that: F  H and G  H.Two Views of SubsumptionA subsumes B A  BSet Theoretic: objs satisfying B  objs satisfying ALogical: B  AA: NounB: NounNumber SGNote that [] subsumes all other feature structures. It is the least upper bound of the semilattice formed by the set of feature structures. In the set theoretic view, it corresponds to U. In the logical view, it corresponds to T.Analogy to Theorem ProvingWe use the terms “unification” and “subsumption” here in essentially the same way in which they are used in theorem proving systems:x, y P(x, f(y))  Q(x, y)f(3) = 8P(2, 8)Conclude: ?Think of “unification” as “matching”.Unification Example – Conjunctions Mary [VP fed the cat] and [VP swept the floor]. Mary fed the cat and Joe swept the floor. Mary bought the[Adj red] and [Adj green] ribbons. [Vtrans Feed] and [Vtrans water] the plants.* [Vtrans Feed] and [Vintrans cough] the plants.* Mary fed [NP the cat] and [Adj green].X0  X1 CONJ X2CAT = CAT  CATAdding Unification to Grammar RulesThe rule S  NP VP[CAT S HEAD [1] STRUCT [SUBJECT [A1] VP [A2] ] ]A1: [CAT NP AGREEMENT [2]: [] ]A2: [CAT VP HEAD [1] AGREEMENT [2] ]Note: The STRUCT feature is used here to record the tree structure of the constituents as they are produced.Applying the Grammar RuleThis rule says that we can build an S from two components, A1 and A2. To apply this rule to two candidate components X and Y, the parser must:Copy the rule structure to create a new instance of S. (Remember that unification is destructive and we’ll need to be able to reuse the rule.)Unify the feature structure of X with the specification for A1 on the right side of the rule. This will succeed if the CAT of X unifies with NP, and if it succeeds, it will bind [2] to the AGREEMENT structure of X and A1 to X.Unify the feature structure of Y with the specification for A2 on the right side of the rule. This will succeed if the CAT of Y unifies with VP and if the AGREEMENT structure of Y unifies with [2], namely the agreement structure of X. If it succeeds, it will bind [1] to the HEAD feature of Y and A2 to Y.Example of Applying the RuleA1: [CAT NP HEAD dogs STRUCT [NOM dogs] AGREEMENT [NBR PL PERS 3] ]A2: [CAT VP HEAD ran STRUCT [V ran] AGREEMENT [] ] [CAT S HEAD [ran] STRUCT [SUBJECT [CAT NP HEAD dogs STRUCT [NOM dogs] AGREEMENT [2]: [NBR PL PERS 3] ] VP [CAT VP HEAD ran STRUCT [V ran] AGREEMENT [2] ] ] ]Features Don’t Have to Be IdenticalMary has become [NP a lawyer] and [AdjP very rich].If we have an algebra of feature types,


View Full Document

UT CS 378 - Features and Unification

Documents in this Course
Epidemics

Epidemics

31 pages

Discourse

Discourse

13 pages

Phishing

Phishing

49 pages

Load more
Download Features and Unification
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Features and Unification and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Features and Unification 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?