SlideShare uma empresa Scribd logo
1 de 67
Baixar para ler offline
Surface Realization

                      Mahalingam.P.R
   Semester III, M.Tech CSESIS, RSET
   Introduction                                            Agenda

   Systemic Grammar
       Interpersonal meta-function
       Ideational meta-function
       Textual meta-function


   Functional Unification Grammar
       Functional Description


   Conclusion

    2                                 Surface Realization
Introduction




3   Surface Realization
   Surface realizer receives the fully
    specified discourse plan.                                Discourse Plan
   Generates individual sentences                           The discourse plan is
                                                             generated      by    the
       Constrained by the lexical and                       DISCOURE PLANNER
                                                             by       taking     into
        grammatical resources                                consideration        the
   Resources                                                communicative goal and
                                                             the available Knowledge
       Define the realizer’s potential range of             Base.
        output                                               The content is structured
                                                             appropriately.
   If the plan specifies multiple-
                                                             Discourse plan defines:
    sentence output, the surface                             •Choices made for the

    realizer is called multiple times.                       entire
                                                             (may
                                                                         communication
                                                                       span    multiple
                                                             sentences)
                                                             •Annotations   (hypertext,
                                                             figures, etc.)



    4                                  Surface Realization
       So, the surface realization component produces
        ordered sequence of words as constrained by the
        lexicon and grammar.

       Input
           Sentence-sized chunks of the discourse specification


       Influential approaches for surface realization
           Systemic Grammar
           Functional Unification Grammar


    5                                  Surface Realization
       No general consensus as to the level at which the
        input to the surface realizer should be specified.

       Some approaches specify only the propositional
        content.




    6                              Surface Realization
What does it do?
       Derive a human readable sentence from a discourse
        plan.

       Discourse plan does not give syntax, only functional
        information. The Surface Realizer adds syntactical
        information and assures that the sentence will
        comply with lexical and grammatical constraints.




    7                              Surface Realization
What doesn’t it do?
       Will not verify that the correctness of the data
        provided by the discourse planner or that the
        information makes sense.

       Does not deal with more than one sentence at a
        time. If the plan calls for many sentences, the
        surface realizer will be called once for each sentence
        required.




    8                               Surface Realization
Simple Surface Realization Tools
       Canned Text Systems                Template Systems
        - Takes a given input and           - The idea of a template is
        matches it directly to a pre-       that there are premade
        made sentence.                      sentences with fill in the
                                            blank words that are filled
        - Commonly used in simple           in by the input.
        systems such as error
        messages or warnings.               - These systems work well
        - Has no flexibility                with Form Letters and
        whatsoever.                         Slightly more advanced
                                            Error or Warning
                                            Messages.
                                            - They are still very
                                            inflexible, but better than
                                            canned text systems.

    9                                   Surface Realization
    The simple surface realization tools eventually gave
     way to advanced Feature-based systems

    Systemic Grammar Representation of sentences
     as collections of functions. Rules allow mapping
     from functions to grammatical forms. (Halliday, 1985)

    Functional Unification Grammar Represents
     sentences as feature structures that can be
     combined and altered to produce sentences. (Kay,
     1979)


    10                          Surface Realization
“The system will save the document”
    The discourse plan           Other approaches
     would specify a saving
     action done by a system      Include the specification
     entity to a document          of the grammatical form
     entity.
                                      In this case, a future
                                       tense assertion
                                  Specification of lexical
                                   items
                                      In this case, save,
                                       system and document



    11                         Surface Realization
    The two approaches take input at different levels.

    Common factor
        Input is functionally specified, rather than syntactically
         specified
            Factor typical of generational systems


    Generation systems start with meaning and context
        Specify the intended output in terms of function, rather
         than form.



    12                                     Surface Realization
“The system will save the document”
    Can be stated in two ways
        ACTIVE FORM
        PASSIE FORM


    Discourse planners tend not to work with the
     syntactic terms.

    They are most likely to keep track of the focus or
     local topic of the discourse.
        More natural to define this distinction in terms of focus.


    13                                 Surface Realization
Surface
   If the document is the local topic of              Realization
    discourse, it would be marked as                   Approaches
    the focus which could trigger the
    use of the passive.                                Systemic Grammar



“The document will be saved by                         Functional Unification
  the system”                                          Grammar



   Both surface realization
    approaches categorize grammar in
    functional terms.



    14                           Surface Realization
Systemic Grammar




15     Surface Realization
Systemic-
   A part of Systemic-Functional                          Functional
    linguistics.                                           linguistics


   Represent sentences as collections                     A branch of linguistics
                                                           that views language as a
    of functions and maintain rules for                    resource for expressing
    mapping these functions on to                          meaning in context

    explicit grammatical forms.
                                                                 -An Introduction to
                                                               Functional Grammar,
   Well suited for generation
                                                                     Halliday (1985)
        Widely influential in NLG




    16                               Surface Realization
“The system will save the document”
    Systemic sentence analysis organize the functions
     being expressed in multiple layers.




    17                         Surface Realization
Mood layer –                                                        Layers
simple declarative       Transitivity layer   Theme layer
    structure


                                                                      “The system will save the
                              Actor / Doer
          Subject
                               (system)
                                                    Theme             document”



                                Process                               Concepts of theme and
    Finite (auxiliary)                              Rheme
                                (saving)
                                                                      rheme were developed by
                                                                      the Prague school of
                               Goal – the                             linguistics
         Predicator           object being
           (verb)             acted upon
                              (document)                                           -Firbas, 1966

                                                                      Thematic roles apply here
          Object                                                      too,     like    AGENT,
                            Rheme                                     EXPERIENCER,
                             a topic of informal discussion          INSTRUMENT, and so on.
                             different from a theme
    18                                          Surface Realization
    The three layers deal with different sets of functions.
        Meta-functions

                         • Inter-personal
              Mood layer
                           meta function

              Transitivity • Ideational meta
                 layer       function

                Theme      • Textual meta
                 layer       function

    19                           Surface Realization
Interpersonal meta-function
    Group the functions that establish and maintain the
     interaction between the sentence writer and the
     reader.

    Represented by the mood layer
        Determines whether the writer is
            Commanding
            Telling
            Asking


    Examples would be whether the writer is telling the
     reader something or is asking a question.

    20                               Surface Realization
Ideational meta-function
    Concerned with the propositional content of the
     expression.

    Transitivity layer determines
        Nature of process being expressed
        Variety of case roles that must be expressed

    Covers much of the semantics.

    In other words, identify items like who the actors are,
     what the goals are for the sentence, and type of
     process being performed.
    21                               Surface Realization
Textual meta-function
    Concerned with the way the expression fits into the
     current discourse.

    Includes issues of thematization and reference.

    Tries to fit the expression with a given theme and
     reference.

    Represented by the theme layer
        Explicitly marks the system as the theme of the sentence


    22                               Surface Realization
    Explicit concern for interpersonal and textual issues
     as well as traditional semantics
        Feature of systemic linguistics that is attractive for NLG.


    Many choices that generation systems make depend
     on context of communication
        Formalized by the interpersonal and textual meta-
         functions.




    23                                 Surface Realization
System network




24               Surface Realization
Grammar represented using a directed, acyclic and/or
graph, called a system network

                                Curly braces
                                    AND  parallel systems
                                Vertical lines
                                    OR  disjoint systems




 25                           Surface Realization
    Every clause (represented as the highest level
     feature) will simultaneously have a different set of
     features for mood, transitivity and theme.

    “The system will save the document”
        Indicative, declarative clause expressing an active
         material process with an unmarked theme.




    26                               Surface Realization
Realization Statements
    A systemic grammar uses realization statements to
     map from the features specified in the grammar (like
     Indicative, Declarative) to syntactic form.
    Each feature in the network can have a set of
     realization statements specifying constraints on the
     final form of the expression.
        Shows as italicized statements below each feature
    Realization statements allow the grammar to
     constrain the structure of the expression as the
     system network is traversed.


    27                              Surface Realization
Some simple operators
                      +X
                      Insert the function X
                          The grammar here
                           specifies that all clauses
                           will have a predicator.




28                 Surface Realization
Some simple operators
                      X=Y
                      Conflate the functions X
                       and Y. This allows the
                       grammar to build a
                       layered function
                       structure by assigning
                       different functions to the
                       same portion of the
                       expression.
                          Active clauses conflate
                           the actor with the subject
                          Passive clauses conflate
                           the goal with the subject

29                 Surface Realization
Some simple operators
                      X>Y
                      Order function X
                       somewhere before
                       function Y.
                          Indicative sentences
                           place the subject
                           somewhere before the
                           predicator.




30                 Surface Realization
Some simple operators
                      X:A
                      Classify the function X with the
                       lexical or grammatical feature
                       A.
                      Signal a recursive pass through
                       the grammar at a lower level.
                      Grammar would include other
                       networks similar to the clause
                       network that would apply to
                       phrases, lexical items and
                       morphology.
                          Indicative feature inserts a
                           subject function that must be a
                           noun phrase.
                          Phrase further specified by
                           another pass through the
                           grammar.



31                 Surface Realization
Some simple operators
                      X!L
                      Assign function X the
                       lexical item L.
                          Finite element of the
                           passive is assigned the
                           lexical item “be”




32                 Surface Realization
Procedure for generation
-Given a fully specified system network
1.    Traverse the network from left to right, choosing
      the appropriate features and collecting the
      associated realization statements.
2.    Build an intermediate expression that reconciles
      the constraints set by the realization statements
      collected during the traversal.
3.    Recurse back through the grammar at a lower level
      for any function that is not fully specified.




 33                           Surface Realization
“The system will save the document”
    We can use the following specification as input.

(
     :process         save-1
     :actor           system-1
     :goal            document-1
     :speechact       assertion
     :tense           future
)


    34                          Surface Realization
   save-1 knowledge base
         instance is identified as
         the process of the
         intended expression.
            Assume all knowledge base
             objects to be KLONE-styled
             instances
        Actor and goal similarly
         specified as system-1
         and document-1
         respectively.
        Input also specifies that
         the expression be in the
         form of an assertion in
         the future tense.

35   Surface Realization
Generation Process
                        Start at clause feature
                            Insert a predicator
                            +predicator
                            Classify predicator as a
                             verb
                            predicator:verb
                        Proceed to mood system
                            Correct option for a system
                             chosen by a simple query
                             or decision network
                             associated with that system
                                Decision based on the
                                 relevant information from
                                 input specification and from
                                 Knowledge Base.

36                   Surface Realization
   Mood system chooses the
         indicative and declarative
         features
            Input specifies assertion.
            Realization statements
             associated with the
             indicative and declarative
             features will insert subject
             and finite functions
                order them as subject, then
                 finite and then predicator.
            +subject
            subject > predicator
            +finite
            finite > predicator
            subject > finite

37   Surface Realization
    The resulting function structure is as follows:




    38                           Surface Realization
   Assume save-1 is marked
         as a material process in
         the knowledge base.
            Transitivity function
             chooses the material
             process feature
            Insert goal and process
             functions
            Conflates the process with
             the finite/predicator pair
            +goal
            +process
            process= finite,predicator

39   Surface Realization
   Since there is no indication
         in either the input or
         knowledge base to use a
         passive, the system chooses
         the active feature, which
            Inserts the actor and
             conflates it with the subject
                +actor
                actor=subject
            Inserts the object, conflating
             it with the goal and ordering
             it after the predicator
                +object
                object=goal
                predicator>object



40   Surface Realization
    This results in the following functional structure.




    41                           Surface Realization
   There is no thematic
         specification in the input
            Thematic network chooses
             unmarked theme
            Inserts theme and rheme
            Conflate theme with subject
            Conflate rheme with
             finite/predicate/object group
            +theme +rheme
            theme=subject
            rheme=predicator,object



42   Surface Realization
    This results in the full function structure as:




    43                            Surface Realization
   The generation process
         recursively enters the
         grammar a number of times
         at lower levels to fully
         specify the phrases, lexical
         items, and morphology.
        This is due to the presence
         of the following statements
            When the network found that
             it is an indicative statement
            finite : auxiliary
            subject : noun phrase
            When active voice was
             identified
            object : noun phrase

44   Surface Realization
    Noun phrase network
        Create the lexical items The system and the document
    Auxiliary network systems
        Create the lexical item will
    The choice of lexical items system, document and
     save can be handled in a number of ways, most
     typically by retrieving the lexical item associated with
     the relevant knowledge base instances.
    The noun phrase and auxiliary network systems
     work similar to the clause network we have seen till
     now.

    45                                  Surface Realization
Functional Unification Grammar




46                  Surface Realization
    Functional Unification Grammar uses unification to
     manipulate and reason about feature structures.
        With a few manipulations, the same technique can be
         applied to NLG.


    Basic Idea
        Build the generation grammar as a feature structure with
         lists of potential alternations
        Then unify this grammar with an input specification built
         using the same sort of feature structure.



    47                               Surface Realization
    Unification process
        takes the features specified in the input
        reconciles them with those in the grammar
        produces a full feature structure which can then be
         linearized to form sentence output.




    48                               Surface Realization
“The system will save the document”
                       A simple functional
                        unification grammar.
                           Expressed as an
                            attribute-value matrix
                           Supports simple
                            transitive sentences in
                            present or future tense
                           Enforces subject-verb
                            agreement on number




49                  Surface Realization
   At highest level, the grammar
         provides alternatives for
         sentences, noun phrases and verb
         phrases
            CAT           S
            CAT           NP
            CAT           VP
        Alternation feature provided by the
         ALT feature on the left.
            Curly braces indicate that any of the
             enclosed alternatives may be
             chosen and followed
        This level also specifies a pattern
         indicating the order of the features
         specified at this level
            Actor
            Process
            Goal




50   Surface Realization
   At sentence level, grammar
         supports the following features.
            Actor  NP
            Process  VP
            Goal  NP
        Subject-verb agreement
            Enforced using the number
             feature inside the process
             feature.
            Number of processes must unify
             with the path {actor number}
        Path  list of features
         specifying a path from the root
         to a particular feature.
        Here, number of process must
         unify with the number of actor.



51   Surface Realization
   While the path is given
         explicitly, we can also
         have relative paths
            Like the number feature
             of the head feature of the
             NP.
        The path here,
         {↑↑number }, indicates
         that the number of the
         head of the NP must
         unify with the number of
         the feature 2 levels up.
52   Surface Realization
Use of {↑↑number}
                       VP level is similar to the NP
                        level except that it has its
                        own alternation between
                        future and present tense.
                       Tense is specified in the
                        input feature structure.
                       Unification will select the
                        alternation that matches and
                        then proceed to unify
                        associated values.
                       If tense is present
                           For example, the head will
                            be single verb.
                       If tense is future
                           Insert modal auxiliary “will”
                            before the head verb.

53                  Surface Realization
    This grammar is similar to the systemic grammar in
     the point that it supports multiple levels, that are
     entered recursively during the generation process.

    The details of the particular sentence we want to
     generate is given in an input feature structure.




    54                          Surface Realization
Functional Description (FD)
    The input feature structure.
    It defines the input specifications for the particular
     sentence we want to generate.
    It is a feature structure just like the grammar.




    55                            Surface Realization
    Here, we see a sentence specification with
        a particular action  the system
        a particular goal  the document
        Process  saving of the document by the system in the
         future
    The input structure specifies the particular verbs and
     nouns to be used as well as the tense
        Different from input to systemic grammar
        In systemic grammar, lexical items retrieved from
         knowledge base entries associated with actor and goal.
        Tense, not included in systemic grammar, is computed by
         a decision network that determines relative points in time
         relevant to the content of the expression.

    56                               Surface Realization
    Since tense is also to be included in the input feature
     structure (Functional Description), more decisions
     have to be made by the discourse planning
     component.

    To produce the output, the input is unified with the
     grammar.
        May require multiple passes through the grammar.




    57                              Surface Realization
    The preliminary unification unifies the input FD with
     the S level in the grammar
        First alternative at the top level
    This results in the structure:




    58                                  Surface Realization
    The features specified in the input structure have
     been unified and merged with the features at the top
     level of the grammar.
        Features associated with actor include the lexical item
         system from the input FD and category NP from the
         grammar.
        Process feature combines the lexical item and tense from
         the input FD with the category and number features from
         the grammar.




    59                              Surface Realization
    Generation mechanism
     now recursively enters the
     grammar for each of the
     sub-constituents.

    It enters the NP level
     twice  for actor and
     goal

    It enters the VP level once
      for the process.
    60                             Surface Realization
Final FD




61         Surface Realization
   Every constituent feature
         that is internally complex
         has a pattern
         specification.
        Every simple constituent
         feature has a lexical
         specification

      The system now uses the
       pattern specifications to
       linearize the output,
       producing
     “The system will save the
       document”


62   Surface Realization
    The example didn’t specify the actor to be plural. We
     can do that by adding the feature-value pair
                         number plural
     to the actor structure in the input FD.
    Subject-verb agreement would then be enforced by
     the unification process.
    Grammar requires that the number of heads of NP
     and VP match with the number of the actor that
     was specified in the input FD.



    63                         Surface Realization
Conclusion




64   Surface Realization
    The two surface generation grammars illustrate the
     nature of computational grammars for generation.
     Both used functional categorizations.
    Bidirectional grammar
        Single grammar for both generation and understanding
        Currently under investigation
        Haven’t found widespread use in NLG
            Additional semantic and contextual information required as input
             to the generator




    65                                     Surface Realization
Sample NLG programs

KPML                                        FUF/SURGE

    A text generation                         A text generation system
     system based off of the                    and English Grammar
                                                using Functional
     earlier Penman system.                     Unification.
     Uses Systemic-                            FUF – Functional
     Functional Linguistics                     Unification Formalism is
     Principles.                                an implementation of
    http://www.fb10.uni-                       Functional Unification
     bremen.de/anglistik/langpro/kpml/REA       Grammar developed by
     DME.html
                                                Elhadad (1992,1993)
                                               http://www.cs.bgu.ac.il/research/projects/s
                                                urge/index.htm


    66                                      Surface Realization
THANK YOU…




67        Surface Realization

Mais conteúdo relacionado

Mais procurados

Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingYasir Khan
 
Abstractive Text Summarization
Abstractive Text SummarizationAbstractive Text Summarization
Abstractive Text SummarizationTho Phan
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language ProcessingMariana Soffer
 
Lecture 1: Semantic Analysis in Language Technology
Lecture 1: Semantic Analysis in Language TechnologyLecture 1: Semantic Analysis in Language Technology
Lecture 1: Semantic Analysis in Language TechnologyMarina Santini
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introductionRobert Lujo
 
Natural Language Processing in Artificial Intelligence - Codeup #5 - PayU
Natural Language Processing in Artificial Intelligence  - Codeup #5 - PayU Natural Language Processing in Artificial Intelligence  - Codeup #5 - PayU
Natural Language Processing in Artificial Intelligence - Codeup #5 - PayU Artivatic.ai
 
Natural language processing
Natural language processingNatural language processing
Natural language processingKarenVacca
 
T9. Trust and reputation in multi-agent systems
T9. Trust and reputation in multi-agent systemsT9. Trust and reputation in multi-agent systems
T9. Trust and reputation in multi-agent systemsEASSS 2012
 
Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxSHIBDASDUTTA
 
Natural Language Processing
Natural Language Processing Natural Language Processing
Natural Language Processing Adarsh Saxena
 
Natural Language Processing: Parsing
Natural Language Processing: ParsingNatural Language Processing: Parsing
Natural Language Processing: ParsingRushdi Shams
 
HCI 3e - Ch 12: Cognitive models
HCI 3e - Ch 12:  Cognitive modelsHCI 3e - Ch 12:  Cognitive models
HCI 3e - Ch 12: Cognitive modelsAlan Dix
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2DigiGurukul
 
Text summarization
Text summarizationText summarization
Text summarizationkareemhashem
 
WORDNET: A Database of Lexical Relations
WORDNET: A Database of Lexical RelationsWORDNET: A Database of Lexical Relations
WORDNET: A Database of Lexical RelationsAhmed Abd-Elwasaa
 
Natural language processing
Natural language processingNatural language processing
Natural language processingYogendra Tamang
 

Mais procurados (20)

Machine Tanslation
Machine TanslationMachine Tanslation
Machine Tanslation
 
Text summarization
Text summarization Text summarization
Text summarization
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Abstractive Text Summarization
Abstractive Text SummarizationAbstractive Text Summarization
Abstractive Text Summarization
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Lecture 1: Semantic Analysis in Language Technology
Lecture 1: Semantic Analysis in Language TechnologyLecture 1: Semantic Analysis in Language Technology
Lecture 1: Semantic Analysis in Language Technology
 
Text Summarization
Text SummarizationText Summarization
Text Summarization
 
Natural language processing (NLP) introduction
Natural language processing (NLP) introductionNatural language processing (NLP) introduction
Natural language processing (NLP) introduction
 
Natural Language Processing in Artificial Intelligence - Codeup #5 - PayU
Natural Language Processing in Artificial Intelligence  - Codeup #5 - PayU Natural Language Processing in Artificial Intelligence  - Codeup #5 - PayU
Natural Language Processing in Artificial Intelligence - Codeup #5 - PayU
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
T9. Trust and reputation in multi-agent systems
T9. Trust and reputation in multi-agent systemsT9. Trust and reputation in multi-agent systems
T9. Trust and reputation in multi-agent systems
 
Natural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptxNatural Language Processing (NLP).pptx
Natural Language Processing (NLP).pptx
 
Natural Language Processing
Natural Language Processing Natural Language Processing
Natural Language Processing
 
Natural Language Processing: Parsing
Natural Language Processing: ParsingNatural Language Processing: Parsing
Natural Language Processing: Parsing
 
HCI 3e - Ch 12: Cognitive models
HCI 3e - Ch 12:  Cognitive modelsHCI 3e - Ch 12:  Cognitive models
HCI 3e - Ch 12: Cognitive models
 
Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2Artificial Intelligence Notes Unit 2
Artificial Intelligence Notes Unit 2
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 
Text summarization
Text summarizationText summarization
Text summarization
 
WORDNET: A Database of Lexical Relations
WORDNET: A Database of Lexical RelationsWORDNET: A Database of Lexical Relations
WORDNET: A Database of Lexical Relations
 
Natural language processing
Natural language processingNatural language processing
Natural language processing
 

Destaque

Making sense of functional grammar
Making sense of functional grammarMaking sense of functional grammar
Making sense of functional grammarBerti Subagijo
 
Tomorrows language technology
Tomorrows language technologyTomorrows language technology
Tomorrows language technologyRoss Turner
 
MoG recruitment
MoG recruitmentMoG recruitment
MoG recruitmentlegacy123
 
Language description (Applied Linguistics)
Language description (Applied Linguistics) Language description (Applied Linguistics)
Language description (Applied Linguistics) Khaleel Al Bataineh
 
Sheila tamizrad types of syllabus
Sheila tamizrad  types of syllabus Sheila tamizrad  types of syllabus
Sheila tamizrad types of syllabus Sheila Rad
 
Oxford dictionary
Oxford dictionaryOxford dictionary
Oxford dictionarycarcifmon
 
Notional functional syllabus design
Notional functional syllabus designNotional functional syllabus design
Notional functional syllabus designMazharul Islam
 
Structural Syllabus Design
Structural Syllabus DesignStructural Syllabus Design
Structural Syllabus DesignSyao Chan
 
Functional - Notional Approach
Functional - Notional ApproachFunctional - Notional Approach
Functional - Notional ApproachBuket Demirbüken
 
A comprehensive grammar of the english language quirk greenbaum leech svartvik
A comprehensive grammar of the english language quirk greenbaum leech svartvikA comprehensive grammar of the english language quirk greenbaum leech svartvik
A comprehensive grammar of the english language quirk greenbaum leech svartvikIvana Jovanovic
 
Systemic Functional Grammar
Systemic Functional Grammar Systemic Functional Grammar
Systemic Functional Grammar Sugeng Hariyanto
 
structural syllabus -- funtional syllabus
structural syllabus -- funtional syllabusstructural syllabus -- funtional syllabus
structural syllabus -- funtional syllabusMasrurin Lailiyah
 
Competence and Performance
Competence and PerformanceCompetence and Performance
Competence and PerformanceSahil Gupta
 

Destaque (19)

Making sense of functional grammar
Making sense of functional grammarMaking sense of functional grammar
Making sense of functional grammar
 
Tomorrows language technology
Tomorrows language technologyTomorrows language technology
Tomorrows language technology
 
MoG recruitment
MoG recruitmentMoG recruitment
MoG recruitment
 
structural
structuralstructural
structural
 
Language description (Applied Linguistics)
Language description (Applied Linguistics) Language description (Applied Linguistics)
Language description (Applied Linguistics)
 
Regular Expressions
Regular ExpressionsRegular Expressions
Regular Expressions
 
Notional functional syllabus
Notional functional syllabusNotional functional syllabus
Notional functional syllabus
 
Sheila tamizrad types of syllabus
Sheila tamizrad  types of syllabus Sheila tamizrad  types of syllabus
Sheila tamizrad types of syllabus
 
Oxford dictionary
Oxford dictionaryOxford dictionary
Oxford dictionary
 
Notional functional syllabus design
Notional functional syllabus designNotional functional syllabus design
Notional functional syllabus design
 
Structural Syllabus Design
Structural Syllabus DesignStructural Syllabus Design
Structural Syllabus Design
 
Course planning and syllabus design
Course planning and syllabus designCourse planning and syllabus design
Course planning and syllabus design
 
Functional Grammar
Functional GrammarFunctional Grammar
Functional Grammar
 
MELT 104 Functional Grammar
MELT 104   Functional GrammarMELT 104   Functional Grammar
MELT 104 Functional Grammar
 
Functional - Notional Approach
Functional - Notional ApproachFunctional - Notional Approach
Functional - Notional Approach
 
A comprehensive grammar of the english language quirk greenbaum leech svartvik
A comprehensive grammar of the english language quirk greenbaum leech svartvikA comprehensive grammar of the english language quirk greenbaum leech svartvik
A comprehensive grammar of the english language quirk greenbaum leech svartvik
 
Systemic Functional Grammar
Systemic Functional Grammar Systemic Functional Grammar
Systemic Functional Grammar
 
structural syllabus -- funtional syllabus
structural syllabus -- funtional syllabusstructural syllabus -- funtional syllabus
structural syllabus -- funtional syllabus
 
Competence and Performance
Competence and PerformanceCompetence and Performance
Competence and Performance
 

Semelhante a Surface realization

Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlpLaraOlmosCamarena
 
NL Context Understanding 23(6)
NL Context Understanding 23(6)NL Context Understanding 23(6)
NL Context Understanding 23(6)IT Industry
 
Towards a Marketplace of Open Source Software Data
Towards a Marketplace of Open Source Software DataTowards a Marketplace of Open Source Software Data
Towards a Marketplace of Open Source Software DataFernando Silva Parreiras
 
CSCorganization of programming languages
CSCorganization of programming languagesCSCorganization of programming languages
CSCorganization of programming languagesOluwafolakeOjo
 
Meaning Extraction - IJCTE 2(1)
Meaning Extraction - IJCTE 2(1)Meaning Extraction - IJCTE 2(1)
Meaning Extraction - IJCTE 2(1)IT Industry
 
Cross-lingual event-mining using wordnet as a shared knowledge interface
Cross-lingual event-mining using wordnet as a shared knowledge interfaceCross-lingual event-mining using wordnet as a shared knowledge interface
Cross-lingual event-mining using wordnet as a shared knowledge interfacepathsproject
 
Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Akshay Nagpurkar
 
Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Akshay Nagpurkar
 
SELFLESS INHERITANCE
SELFLESS INHERITANCESELFLESS INHERITANCE
SELFLESS INHERITANCEijpla
 
Information retrieval based on word sens 1
Information retrieval based on word sens 1Information retrieval based on word sens 1
Information retrieval based on word sens 1ATHMAN HAJ-HAMOU
 
Towards Building Semantic Role Labeler for Indian Languages
Towards Building Semantic Role Labeler for Indian LanguagesTowards Building Semantic Role Labeler for Indian Languages
Towards Building Semantic Role Labeler for Indian LanguagesAlgoscale Technologies Inc.
 

Semelhante a Surface realization (20)

Challenges in transfer learning in nlp
Challenges in transfer learning in nlpChallenges in transfer learning in nlp
Challenges in transfer learning in nlp
 
NL Context Understanding 23(6)
NL Context Understanding 23(6)NL Context Understanding 23(6)
NL Context Understanding 23(6)
 
TermWiki
TermWikiTermWiki
TermWiki
 
A Rewriting Approach to Concurrent Programming Language Design and Semantics
A Rewriting Approach to Concurrent Programming Language Design and SemanticsA Rewriting Approach to Concurrent Programming Language Design and Semantics
A Rewriting Approach to Concurrent Programming Language Design and Semantics
 
Towards a Marketplace of Open Source Software Data
Towards a Marketplace of Open Source Software DataTowards a Marketplace of Open Source Software Data
Towards a Marketplace of Open Source Software Data
 
OBSC Framework
OBSC FrameworkOBSC Framework
OBSC Framework
 
CSCorganization of programming languages
CSCorganization of programming languagesCSCorganization of programming languages
CSCorganization of programming languages
 
Meaning Extraction - IJCTE 2(1)
Meaning Extraction - IJCTE 2(1)Meaning Extraction - IJCTE 2(1)
Meaning Extraction - IJCTE 2(1)
 
Cross-lingual event-mining using wordnet as a shared knowledge interface
Cross-lingual event-mining using wordnet as a shared knowledge interfaceCross-lingual event-mining using wordnet as a shared knowledge interface
Cross-lingual event-mining using wordnet as a shared knowledge interface
 
Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3
 
Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3Ppl for students unit 1,2 and 3
Ppl for students unit 1,2 and 3
 
SELFLESS INHERITANCE
SELFLESS INHERITANCESELFLESS INHERITANCE
SELFLESS INHERITANCE
 
nlp (1).pptx
nlp (1).pptxnlp (1).pptx
nlp (1).pptx
 
Information retrieval based on word sens 1
Information retrieval based on word sens 1Information retrieval based on word sens 1
Information retrieval based on word sens 1
 
50120140503001
5012014050300150120140503001
50120140503001
 
50120140503001
5012014050300150120140503001
50120140503001
 
50120140503001
5012014050300150120140503001
50120140503001
 
10.1.1.35.8376
10.1.1.35.837610.1.1.35.8376
10.1.1.35.8376
 
Towards Building Semantic Role Labeler for Indian Languages
Towards Building Semantic Role Labeler for Indian LanguagesTowards Building Semantic Role Labeler for Indian Languages
Towards Building Semantic Role Labeler for Indian Languages
 
INTERPRETER.ppt
INTERPRETER.pptINTERPRETER.ppt
INTERPRETER.ppt
 

Último

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 

Último (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 

Surface realization

  • 1. Surface Realization Mahalingam.P.R Semester III, M.Tech CSESIS, RSET
  • 2. Introduction Agenda  Systemic Grammar  Interpersonal meta-function  Ideational meta-function  Textual meta-function  Functional Unification Grammar  Functional Description  Conclusion 2 Surface Realization
  • 3. Introduction 3 Surface Realization
  • 4. Surface realizer receives the fully specified discourse plan. Discourse Plan  Generates individual sentences The discourse plan is generated by the  Constrained by the lexical and DISCOURE PLANNER by taking into grammatical resources consideration the  Resources communicative goal and the available Knowledge  Define the realizer’s potential range of Base. output The content is structured appropriately.  If the plan specifies multiple- Discourse plan defines: sentence output, the surface •Choices made for the realizer is called multiple times. entire (may communication span multiple sentences) •Annotations (hypertext, figures, etc.) 4 Surface Realization
  • 5. So, the surface realization component produces ordered sequence of words as constrained by the lexicon and grammar.  Input  Sentence-sized chunks of the discourse specification  Influential approaches for surface realization  Systemic Grammar  Functional Unification Grammar 5 Surface Realization
  • 6. No general consensus as to the level at which the input to the surface realizer should be specified.  Some approaches specify only the propositional content. 6 Surface Realization
  • 7. What does it do?  Derive a human readable sentence from a discourse plan.  Discourse plan does not give syntax, only functional information. The Surface Realizer adds syntactical information and assures that the sentence will comply with lexical and grammatical constraints. 7 Surface Realization
  • 8. What doesn’t it do?  Will not verify that the correctness of the data provided by the discourse planner or that the information makes sense.  Does not deal with more than one sentence at a time. If the plan calls for many sentences, the surface realizer will be called once for each sentence required. 8 Surface Realization
  • 9. Simple Surface Realization Tools  Canned Text Systems  Template Systems - Takes a given input and - The idea of a template is matches it directly to a pre- that there are premade made sentence. sentences with fill in the blank words that are filled - Commonly used in simple in by the input. systems such as error messages or warnings. - These systems work well - Has no flexibility with Form Letters and whatsoever. Slightly more advanced Error or Warning Messages. - They are still very inflexible, but better than canned text systems. 9 Surface Realization
  • 10. The simple surface realization tools eventually gave way to advanced Feature-based systems  Systemic Grammar Representation of sentences as collections of functions. Rules allow mapping from functions to grammatical forms. (Halliday, 1985)  Functional Unification Grammar Represents sentences as feature structures that can be combined and altered to produce sentences. (Kay, 1979) 10 Surface Realization
  • 11. “The system will save the document”  The discourse plan  Other approaches would specify a saving action done by a system  Include the specification entity to a document of the grammatical form entity.  In this case, a future tense assertion  Specification of lexical items  In this case, save, system and document 11 Surface Realization
  • 12. The two approaches take input at different levels.  Common factor  Input is functionally specified, rather than syntactically specified  Factor typical of generational systems  Generation systems start with meaning and context  Specify the intended output in terms of function, rather than form. 12 Surface Realization
  • 13. “The system will save the document”  Can be stated in two ways  ACTIVE FORM  PASSIE FORM  Discourse planners tend not to work with the syntactic terms.  They are most likely to keep track of the focus or local topic of the discourse.  More natural to define this distinction in terms of focus. 13 Surface Realization
  • 14. Surface  If the document is the local topic of Realization discourse, it would be marked as Approaches the focus which could trigger the use of the passive. Systemic Grammar “The document will be saved by Functional Unification the system” Grammar  Both surface realization approaches categorize grammar in functional terms. 14 Surface Realization
  • 15. Systemic Grammar 15 Surface Realization
  • 16. Systemic-  A part of Systemic-Functional Functional linguistics. linguistics  Represent sentences as collections A branch of linguistics that views language as a of functions and maintain rules for resource for expressing mapping these functions on to meaning in context explicit grammatical forms. -An Introduction to Functional Grammar,  Well suited for generation Halliday (1985)  Widely influential in NLG 16 Surface Realization
  • 17. “The system will save the document”  Systemic sentence analysis organize the functions being expressed in multiple layers. 17 Surface Realization
  • 18. Mood layer – Layers simple declarative Transitivity layer Theme layer structure “The system will save the Actor / Doer Subject (system) Theme document” Process Concepts of theme and Finite (auxiliary) Rheme (saving) rheme were developed by the Prague school of Goal – the linguistics Predicator object being (verb) acted upon (document) -Firbas, 1966 Thematic roles apply here Object too, like AGENT, Rheme EXPERIENCER,  a topic of informal discussion INSTRUMENT, and so on.  different from a theme 18 Surface Realization
  • 19. The three layers deal with different sets of functions.  Meta-functions • Inter-personal Mood layer meta function Transitivity • Ideational meta layer function Theme • Textual meta layer function 19 Surface Realization
  • 20. Interpersonal meta-function  Group the functions that establish and maintain the interaction between the sentence writer and the reader.  Represented by the mood layer  Determines whether the writer is  Commanding  Telling  Asking  Examples would be whether the writer is telling the reader something or is asking a question. 20 Surface Realization
  • 21. Ideational meta-function  Concerned with the propositional content of the expression.  Transitivity layer determines  Nature of process being expressed  Variety of case roles that must be expressed  Covers much of the semantics.  In other words, identify items like who the actors are, what the goals are for the sentence, and type of process being performed. 21 Surface Realization
  • 22. Textual meta-function  Concerned with the way the expression fits into the current discourse.  Includes issues of thematization and reference.  Tries to fit the expression with a given theme and reference.  Represented by the theme layer  Explicitly marks the system as the theme of the sentence 22 Surface Realization
  • 23. Explicit concern for interpersonal and textual issues as well as traditional semantics  Feature of systemic linguistics that is attractive for NLG.  Many choices that generation systems make depend on context of communication  Formalized by the interpersonal and textual meta- functions. 23 Surface Realization
  • 24. System network 24 Surface Realization
  • 25. Grammar represented using a directed, acyclic and/or graph, called a system network  Curly braces  AND  parallel systems  Vertical lines  OR  disjoint systems 25 Surface Realization
  • 26. Every clause (represented as the highest level feature) will simultaneously have a different set of features for mood, transitivity and theme.  “The system will save the document”  Indicative, declarative clause expressing an active material process with an unmarked theme. 26 Surface Realization
  • 27. Realization Statements  A systemic grammar uses realization statements to map from the features specified in the grammar (like Indicative, Declarative) to syntactic form.  Each feature in the network can have a set of realization statements specifying constraints on the final form of the expression.  Shows as italicized statements below each feature  Realization statements allow the grammar to constrain the structure of the expression as the system network is traversed. 27 Surface Realization
  • 28. Some simple operators  +X  Insert the function X  The grammar here specifies that all clauses will have a predicator. 28 Surface Realization
  • 29. Some simple operators  X=Y  Conflate the functions X and Y. This allows the grammar to build a layered function structure by assigning different functions to the same portion of the expression.  Active clauses conflate the actor with the subject  Passive clauses conflate the goal with the subject 29 Surface Realization
  • 30. Some simple operators  X>Y  Order function X somewhere before function Y.  Indicative sentences place the subject somewhere before the predicator. 30 Surface Realization
  • 31. Some simple operators  X:A  Classify the function X with the lexical or grammatical feature A.  Signal a recursive pass through the grammar at a lower level.  Grammar would include other networks similar to the clause network that would apply to phrases, lexical items and morphology.  Indicative feature inserts a subject function that must be a noun phrase.  Phrase further specified by another pass through the grammar. 31 Surface Realization
  • 32. Some simple operators  X!L  Assign function X the lexical item L.  Finite element of the passive is assigned the lexical item “be” 32 Surface Realization
  • 33. Procedure for generation -Given a fully specified system network 1. Traverse the network from left to right, choosing the appropriate features and collecting the associated realization statements. 2. Build an intermediate expression that reconciles the constraints set by the realization statements collected during the traversal. 3. Recurse back through the grammar at a lower level for any function that is not fully specified. 33 Surface Realization
  • 34. “The system will save the document”  We can use the following specification as input. ( :process save-1 :actor system-1 :goal document-1 :speechact assertion :tense future ) 34 Surface Realization
  • 35. save-1 knowledge base instance is identified as the process of the intended expression.  Assume all knowledge base objects to be KLONE-styled instances  Actor and goal similarly specified as system-1 and document-1 respectively.  Input also specifies that the expression be in the form of an assertion in the future tense. 35 Surface Realization
  • 36. Generation Process  Start at clause feature  Insert a predicator  +predicator  Classify predicator as a verb  predicator:verb  Proceed to mood system  Correct option for a system chosen by a simple query or decision network associated with that system  Decision based on the relevant information from input specification and from Knowledge Base. 36 Surface Realization
  • 37. Mood system chooses the indicative and declarative features  Input specifies assertion.  Realization statements associated with the indicative and declarative features will insert subject and finite functions  order them as subject, then finite and then predicator.  +subject  subject > predicator  +finite  finite > predicator  subject > finite 37 Surface Realization
  • 38. The resulting function structure is as follows: 38 Surface Realization
  • 39. Assume save-1 is marked as a material process in the knowledge base.  Transitivity function chooses the material process feature  Insert goal and process functions  Conflates the process with the finite/predicator pair  +goal  +process  process= finite,predicator 39 Surface Realization
  • 40. Since there is no indication in either the input or knowledge base to use a passive, the system chooses the active feature, which  Inserts the actor and conflates it with the subject  +actor  actor=subject  Inserts the object, conflating it with the goal and ordering it after the predicator  +object  object=goal  predicator>object 40 Surface Realization
  • 41. This results in the following functional structure. 41 Surface Realization
  • 42. There is no thematic specification in the input  Thematic network chooses unmarked theme  Inserts theme and rheme  Conflate theme with subject  Conflate rheme with finite/predicate/object group  +theme +rheme  theme=subject  rheme=predicator,object 42 Surface Realization
  • 43. This results in the full function structure as: 43 Surface Realization
  • 44. The generation process recursively enters the grammar a number of times at lower levels to fully specify the phrases, lexical items, and morphology.  This is due to the presence of the following statements  When the network found that it is an indicative statement  finite : auxiliary  subject : noun phrase  When active voice was identified  object : noun phrase 44 Surface Realization
  • 45. Noun phrase network  Create the lexical items The system and the document  Auxiliary network systems  Create the lexical item will  The choice of lexical items system, document and save can be handled in a number of ways, most typically by retrieving the lexical item associated with the relevant knowledge base instances.  The noun phrase and auxiliary network systems work similar to the clause network we have seen till now. 45 Surface Realization
  • 46. Functional Unification Grammar 46 Surface Realization
  • 47. Functional Unification Grammar uses unification to manipulate and reason about feature structures.  With a few manipulations, the same technique can be applied to NLG.  Basic Idea  Build the generation grammar as a feature structure with lists of potential alternations  Then unify this grammar with an input specification built using the same sort of feature structure. 47 Surface Realization
  • 48. Unification process  takes the features specified in the input  reconciles them with those in the grammar  produces a full feature structure which can then be linearized to form sentence output. 48 Surface Realization
  • 49. “The system will save the document”  A simple functional unification grammar.  Expressed as an attribute-value matrix  Supports simple transitive sentences in present or future tense  Enforces subject-verb agreement on number 49 Surface Realization
  • 50. At highest level, the grammar provides alternatives for sentences, noun phrases and verb phrases  CAT S  CAT NP  CAT VP  Alternation feature provided by the ALT feature on the left.  Curly braces indicate that any of the enclosed alternatives may be chosen and followed  This level also specifies a pattern indicating the order of the features specified at this level  Actor  Process  Goal 50 Surface Realization
  • 51. At sentence level, grammar supports the following features.  Actor  NP  Process  VP  Goal  NP  Subject-verb agreement  Enforced using the number feature inside the process feature.  Number of processes must unify with the path {actor number}  Path  list of features specifying a path from the root to a particular feature.  Here, number of process must unify with the number of actor. 51 Surface Realization
  • 52. While the path is given explicitly, we can also have relative paths  Like the number feature of the head feature of the NP.  The path here, {↑↑number }, indicates that the number of the head of the NP must unify with the number of the feature 2 levels up. 52 Surface Realization
  • 53. Use of {↑↑number}  VP level is similar to the NP level except that it has its own alternation between future and present tense.  Tense is specified in the input feature structure.  Unification will select the alternation that matches and then proceed to unify associated values.  If tense is present  For example, the head will be single verb.  If tense is future  Insert modal auxiliary “will” before the head verb. 53 Surface Realization
  • 54. This grammar is similar to the systemic grammar in the point that it supports multiple levels, that are entered recursively during the generation process.  The details of the particular sentence we want to generate is given in an input feature structure. 54 Surface Realization
  • 55. Functional Description (FD)  The input feature structure.  It defines the input specifications for the particular sentence we want to generate.  It is a feature structure just like the grammar. 55 Surface Realization
  • 56. Here, we see a sentence specification with  a particular action  the system  a particular goal  the document  Process  saving of the document by the system in the future  The input structure specifies the particular verbs and nouns to be used as well as the tense  Different from input to systemic grammar  In systemic grammar, lexical items retrieved from knowledge base entries associated with actor and goal.  Tense, not included in systemic grammar, is computed by a decision network that determines relative points in time relevant to the content of the expression. 56 Surface Realization
  • 57. Since tense is also to be included in the input feature structure (Functional Description), more decisions have to be made by the discourse planning component.  To produce the output, the input is unified with the grammar.  May require multiple passes through the grammar. 57 Surface Realization
  • 58. The preliminary unification unifies the input FD with the S level in the grammar  First alternative at the top level  This results in the structure: 58 Surface Realization
  • 59. The features specified in the input structure have been unified and merged with the features at the top level of the grammar.  Features associated with actor include the lexical item system from the input FD and category NP from the grammar.  Process feature combines the lexical item and tense from the input FD with the category and number features from the grammar. 59 Surface Realization
  • 60. Generation mechanism now recursively enters the grammar for each of the sub-constituents.  It enters the NP level twice  for actor and goal  It enters the VP level once  for the process. 60 Surface Realization
  • 61. Final FD 61 Surface Realization
  • 62. Every constituent feature that is internally complex has a pattern specification.  Every simple constituent feature has a lexical specification  The system now uses the pattern specifications to linearize the output, producing “The system will save the document” 62 Surface Realization
  • 63. The example didn’t specify the actor to be plural. We can do that by adding the feature-value pair number plural to the actor structure in the input FD.  Subject-verb agreement would then be enforced by the unification process.  Grammar requires that the number of heads of NP and VP match with the number of the actor that was specified in the input FD. 63 Surface Realization
  • 64. Conclusion 64 Surface Realization
  • 65. The two surface generation grammars illustrate the nature of computational grammars for generation. Both used functional categorizations.  Bidirectional grammar  Single grammar for both generation and understanding  Currently under investigation  Haven’t found widespread use in NLG  Additional semantic and contextual information required as input to the generator 65 Surface Realization
  • 66. Sample NLG programs KPML FUF/SURGE  A text generation  A text generation system system based off of the and English Grammar using Functional earlier Penman system. Unification. Uses Systemic-  FUF – Functional Functional Linguistics Unification Formalism is Principles. an implementation of  http://www.fb10.uni- Functional Unification bremen.de/anglistik/langpro/kpml/REA Grammar developed by DME.html Elhadad (1992,1993)  http://www.cs.bgu.ac.il/research/projects/s urge/index.htm 66 Surface Realization
  • 67. THANK YOU… 67 Surface Realization