# Patent

## Title
Generating Chinese language banners

## Abstract

Embodiments are disclosed for automatically generating a banner given a first scroll sentence and a second scroll sentence of a Chinese couplet. The first and/or second scroll sentence can be generated by an automatic computer system or by a human (e.g., manually generated and then provided as input to an automated banner generation system) or obtained from any source (e.g., a book) and provided as input. In one embodiment, an information retrieval process is utilized to identify banner candidates that best match the first and second scroll sentences. In one embodiment, candidate banners are automatically generated. In one embodiment, a ranking model is applied in order to rank banner candidates derived from the banner search and generation processes. One or more banners are then selected from the ranked banner candidates.

## Background
CROSS-REFERENCE TO RELATED APPLICATION
The present application is a continuation application based on and claims the benefit of U.S. patent Ser. No. 11/788,448, filed Apr. 20, 2007, now U.S. Pat. No. 8,000,955, which issued on Aug. 16, 2011, which claims priority and benefit to U.S. provisional patent application Ser. No. 60/876,085, filed Dec. 20, 2006, the content of which is hereby incorporated by reference in its entirety.


BACKGROUND
Artificial intelligence is the science and engineering of making intelligent machines, especially computer programs. Applications of artificial intelligence include game playing and speech recognition.
Chinese antithetical couplets called “dui4-lian2” (in Pinyin) are considered an important Chinese cultural heritage. The teaching of antithetical couplets was an important method of teaching traditional Chinese for thousands of years. Typically, an antithetical couplet includes two phrases or sentences written as calligraphy on vertical red banners, typically placed on either side of a door or in a large hall. Such couplets are illustratively displayed during special occasions such as weddings or during the Spring Festival, i.e. Chinese New Year. Other types of couplets include birthday couplets, elegiac couplets, decoration couplets, professional or other human association couplets, and the like.
Chinese antithetical couplets use condensed language, but have deep and sometimes ambivalent or double meaning. The two sentences making up the couplet are illustratively called the “first scroll sentence” and the “second scroll sentence.”
An example of a Chinese couplet is “” and “” where the first scroll sentence is “” and the second scroll sentence is “”. The correspondence between individual words of the first and second sentences is shown as follows:

    
    
         (sea) - - -  (sky)
         (wide) - - -  (high)
         (allows) - - -  (enable)
         (fish) - - -  (bird)
         (jump) - - -  (fly)
    
    


Antithetical couplets can be of different length. A short couplet can include one or two characters while a longer couplet can reach several hundred characters. The antithetical couplets can also have diverse forms or relative meanings. For instance, one form can include first and second scroll sentences having the same meaning. Another form can include scroll sentences having the opposite meaning. However, no matter which form, Chinese couplets generally conform to rules or principles such as the following:
Principle 1: The two sentences of the couplet generally have the same number of words and total number of Chinese characters. Each Chinese character has one syllable when spoken. A Chinese word can have one, two or more characters, and consequently, be pronounced with one, two or more syllables. Each word of a first scroll sentence should have the same number of Chinese characters as the corresponding word in the second scroll sentence.
Principle 2: Tones (e.g. “Ping” () and “Ze” () in Chinese) are generally coinciding and harmonious. The traditional custom is that the character at the end of first scroll sentence should be “” (called tone “Ze” in Chinese). This tone is pronounced in a sharp downward tone. The character at the end of the second scroll sentence should be “” (called tone “Ping” in Chinese). This tone is pronounced with a level tone.
Principle 3: The parts of speech of words in the second sentence should be identical to the corresponding words in the first scroll sentence. In other words, a noun in the first scroll sentence should correspond to a noun in the second scroll sentence. The same would be true for a verb, adjective, number-classifier, adverb, and so on. Moreover, the corresponding words must be in the same position in the first scroll sentence and the second scroll sentence.
Principle 4: The contents of the second scroll sentence should be mutually inter-related with the first scroll sentence and the contents cannot be duplicated in the first and second scroll sentences.
In some cases, couplets are accompanied by a banner (a.k.a., a streamer), typically horizontally placed above a door between the vertical couplet banners. A banner, most commonly a phrase composed of 4 Chinese characters, is used to attach with a couplet to summarize, emphasize and complement the meaning of the couplet. Although the length of a banner can vary from 2 characters to 5 or 6 characters, a banner most typically has 4 characters. A basic requirement for a banner is that its meaning should fit the meaning of the first and second scroll sentences. For example, the banner for the couplet “” is “”. Literally translated as “winter goes by, the mountain is bright and the river is beautiful; spring comes, then bird is singing and the flowers smell good”.
However, no matter which form, a banner for a Chinese couplet generally conforms to rules or principles such as the following:
Principle 1: The banner generally consists of 4 Chinese characters. In a minority of cases, a banner consists of 2, or 3, or 5 or more characters. Each Chinese character generally has one syllable when spoken.
Principle 2: Tones are generally coinciding and harmonious. But normally, there is no strict requirement in terms of the correspondence between banner and either first scroll of sentence or second scroll of sentence.
Principle 3: The content of the banner should be mutually inter-related with the first and second scroll sentences, and the content generally cannot be duplicated in the first and second scroll sentences.
Chinese-speaking people often engage in creating new couplets and banner as a form of entertainment. One form of recreation is one person makes up a first scroll sentence and challenges others to create, on the spot, an appropriate second scroll sentence. A further challenge is sometimes made to create the banner after the first and second scroll sentence are given. Thus, creating banners, like creating second scroll sentences, challenges participants' linguistic, creative, and other intellectual capabilities.
In general, an automatic generation of second scroll sentences (e.g., given a first scroll sentence) and/or banners (e.g., given first and second scroll sentences) would be an appropriate and well-regarded application of artificial intelligence.
The discussion above is merely provided for general background information and is not intended to be used as an aid in determining the scope of the claimed subject matter.
SUMMARY
Embodiments disclosed herein pertain to methods for automatically generating a banner given a first scroll sentence and a second scroll sentence of a Chinese couplet. The first and/or second scroll sentence can be generated by an automatic computer system or by a human (e.g., manually generated and then provided as input to an automated banner generation system) or obtained from any source (e.g., a book) and provided as input. In one embodiment, an information retrieval process is utilized to identify banner candidates that best match the first and second scroll sentences. In one embodiment, candidate banners are automatically generated. In one embodiment, a ranking model is applied in order to rank banner candidates derived from the banner search and generation processes. One or more banners are then selected from the ranked banner candidates.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all disadvantages noted in the background.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a computing environment.
FIG. 2 is a broad overview of a process for generating banners.
FIG. 3 is a flow chart diagram demonstrating steps associated with constructing a banner taxonomy.
FIG. 4 is a flow chart diagram demonstrating steps associated with finding, for a given couplet, its best matched candidate banners.
FIG. 5 is a flow chart diagram demonstrating steps associated with banner generation.



DETAILED DESCRIPTION
Before addressing embodiments of banner generation systems and methods, it may be helpful to describe generally computing devices that can be used for practicing the various embodiments described herein. FIG. 1 illustrates an example of a suitable computing system environment 100 in which the embodiments may be implemented. The computing system environment 100 is only one example of a suitable computing environment and is not intended to suggest any limitation as to scope of use or functionality. Neither should the computing environment 100 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in the exemplary operating environment 100.
The embodiments are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with embodiments disclosed herein include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, telephone systems, distributed computing environments that include any of the above systems or devices, and the like.
The embodiments may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Those skilled in the art can implement the description and figures provided herein as processor executable instructions, which can be written on any form of a computer readable medium.
The embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
With reference to FIG. 1, an exemplary system for implementing the embodiments include a general purpose computing device in the form of a computer 110. Components of computer 110 may include, but are not limited to, a processing unit 120, a system memory 130, and a system bus 121 that couples various system components including the system memory to the processing unit 120. The system bus 121 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as Mezzanine bus.
Computer 110 typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by computer 110 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 110. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.
The system memory 130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 131 and random access memory (RAM) 132. A basic input/output system 133 (BIOS), containing the basic routines that help to transfer information between elements within computer 110, such as during start-up, is typically stored in ROM 131. RAM 132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 120. By way of example, and not limitation, FIG. 1 illustrates operating system 134, application programs 135, other program modules 136, and program data 137. Programs 135 are shown as possibly including a banner generation system, embodiments of which will be described herein in detail. This is but one example of where in environment 100 such systems might be implemented. Other implementations (e.g., as part of programs 145 or 185) should also be considered within the scope of the present invention.
The computer 110 may also include other removable/non-removable volatile/nonvolatile computer storage media. By way of example only, FIG. 1 illustrates a hard disk drive 141 that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive 151 that reads from or writes to a removable, nonvolatile magnetic disk 152, and an optical disk drive 155 that reads from or writes to a removable, nonvolatile optical disk 156 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. The hard disk drive 141 is typically connected to the system bus 121 through a non-removable memory interface such as interface 140, and magnetic disk drive 151 and optical disk drive 155 are typically connected to the system bus 121 by a removable memory interface, such as interface 150.
The drives and their associated computer storage media discussed above and illustrated in FIG. 1, provide storage of computer readable instructions, data structures, program modules and other data for the computer 110. In FIG. 1, for example, hard disk drive 141 is illustrated as storing operating system 144, application programs 145, other program modules 146, and program data 147. Note that these components can either be the same as or different from operating system 134, application programs 135, other program modules 136, and program data 137. Operating system 144, application programs 145, other program modules 146, and program data 147 are given different numbers here to illustrate that, at a minimum, they are different copies.
A user may enter commands and information into the computer 110 through input devices such as a keyboard 162, a microphone 163, and a pointing device 161, such as a mouse, trackball or touch pad. Other input devices (not shown) may include a joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 120 through a user input interface 160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). A monitor 191 or other type of display device is also connected to the system bus 121 via an interface, such as a video interface 190. In addition to the monitor, computers may also include other peripheral output devices such as speakers 197 and printer 196, which may be connected through an output peripheral interface 190.
The computer 110 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 180. The remote computer 180 may be a personal computer, a hand-held device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 110. The logical connections depicted in FIG. 1 include a local area network (LAN) 171 and a wide area network (WAN) 173, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.
When used in a LAN networking environment, the computer 110 is connected to the LAN 171 through a network interface or adapter 170. When used in a WAN networking environment, the computer 110 typically includes a modem 172 or other means for establishing communications over the WAN 173, such as the Internet. The modem 172, which may be internal or external, may be connected to the system bus 121 via the user input interface 160, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 110, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation, FIG. 1 illustrates remote application programs 185 as residing on remote computer 180. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
FIG. 2 is a schematic overview of a process for generating banners. Banners with four characters are generally most common. Thus, in the present description, embodiments will be described in the context of four character banners. However, the scope of the present invention is not so limited. The same or similar concepts can just as easily be applied in the context of banners with other than four characters.
In accordance with block 202, first and second scroll sentences are provided as input. In accordance with blocks 204 and 206, two different methods are employed to produce banner candidates. In accordance with block 208, a ranking model is applied, for example to support selection of the N-best banners from the generated candidates. Output banner or banners 210 are selected from the N-best banners.
As is indicated by block 204, some banner candidates are produced utilizing an information retrieval based approach. At least because of a relatively high recurrence of common banners, it can be worthwhile to produce banner candidates by searching a database of existing banners.
In one embodiment, in preparation of a search process, a taxonomy of banners is built and filled by existing banners collected from external sources (e.g., books, Internet, etc.). Then, for a given couplet, the taxonomy is searched with the couplet sentences (first and second sentences) in order to produce a set of best matched candidate banners.
FIG. 3 is a flow chart diagram demonstrating steps associated with constructing a banner taxonomy. In step 302, 4-character banners are collected. Each banner illustratively uses a phrase that, for example, has been used as a banner before, are an idiom, and/or happen to be a high-frequency 4-character phase. Those skilled in the art will appreciate that these types of phrases can be obtained from a wide variety of different sources. The scope of the present invention is not limited to one particular source or combination of sources.
In step 304, a feature vector is created for each collected banner. The feature vector illustratively serves to identify an associated meaning. In one embodiment, the creation of feature vectors involves first searching the collected banners with a web search engine and collecting returned top N snippets. These snippets can be further combined with information retrieved from one or more additional sources (e.g., a news corpus) to enhance coverage and therefore form a new larger corpus. Once the corpus is complete, then, for each banner, words that co-occur within a fixed-size window in the corpus are collected as feature words. In one embodiment, the weight of each feature word is decided by the mutual information (see the following equation) between the feature word and the candidate banner in the new corpus.




  
    
      
        
          MI
          ⁡
          
            (
            
              w
              ,
              ci
            
            )
          
        
        =
        
          
            p
            ⁡
            
              (
              
                w
                ,
                ci
              
              )
            
          
          ⁢
          log
          ⁢
          
            
              p
              ⁡
              
                (
                
                  w
                  ,
                  ci
                
                )
              
            
            
              
                p
                ⁡
                
                  (
                  w
                  )
                
              
              ⁢
              
                p
                ⁡
                
                  (
                  ci
                  )
                
              
            
          
        
      
    
    
      
        Eq
        .
        
          
        
        ⁢
        1
      
    
  




Where, ci is a banner and w is a word, p(w)=count(w)/N, and p(w,ci)=count(w,ci)/N. And where N is the size of training corpus in terms of number of words, count(w) is the frequency of word w appearing in training corpus, and count(w,ci) is the frequency of w and ci co-occurring within a fix-size window in the training corpus.
In accordance with step 306, the collected banners are divided into semantic categories (e.g., 14 categories). In one embodiment, this sorting is done through human intervention (e.g., categorizing is done by human experts). In one embodiment, the categories are defined by human experts, such as banners for Spring Festival, banners for birthday, banners for wedding ceremony, banners to celebrate success, etc. In one embodiment, a single banner is allowed to belong to multiple categories.
In accordance with step 308, the collected banners are automatically clustered within the categories into subcategories. In one embodiment, this is done using K-Means Clustering. The distance measure between two candidate banners used in clustering is illustratively defined as the cosine value of their feature vectors, i.e.,




  
    
      
        
          Cosine
          ⁡
          
            (
            
              
                V
                ⁢
                
                  
                
                ⁢
                1
              
              ,
              
                V
                ⁢
                
                  
                
                ⁢
                2
              
            
            )
          
        
        =
        
          
            V
            ⁢
            
              
            
            ⁢
            
              1
              ·
              V
            
            ⁢
            
              
            
            ⁢
            2
          
          
            
              
              
                V
                ⁢
                
                  
                
                ⁢
                1
              
              
            
            ×
            
              
              
                V
                ⁢
                
                  
                
                ⁢
                2
              
              
            
          
        
      
    
    
      
        Eq
        .
        
          
        
        ⁢
        2
      
    
  




Where, V1 and V2 represent the feature word vectors of the two banner candidates respectively.
In accordance with step 310, a centroid feature vector is created for each subcategory. In one embodiment, this is done by averaging the member vectors of the subcategory, i.e.,




  
    
      
        Vcen
        =
        
          
            1
            N
          
          ⁢
          
            
              ∑
              
                i
                =
                1
              
              N
            
            ⁢
            
              
            
            ⁢
            Vi
          
        
      
    
    
      
        Eq
        .
        
          
        
        ⁢
        3
      
    
  




Where, Vcen is the centroid feature vector and the Vi is one of the member vectors in a subcategory. And where N is the number of members of the subcategory.
FIG. 4 is a flow chart diagram demonstrating steps associated with using the constructed taxonomy to, for a given couplet, find its best matched candidate banners. In accordance with step 402, the feature vector of the input couplet is created using the words included in the couplet. In one embodiment, the weight of each word in the feature vector is the frequency of the word appearing in the couplet.
In accordance with step 404, a distance is calculated between the couplet feature vector and the centroid feature vector of each subcategory in the banner taxonomy. Referring to equation 2, V1 and V2 represent the couplet feature vector and the centroid feature vector of each subcategory in the banner taxonomy respectively. A number n subcategories with the minimum distance are illustratively selected.
In accordance with step 406, the distance is calculated between the couplet feature vector and the feature vector of each banner in the selected n subcategories. Here, V1 and V2 represent the couplet feature vector and the feature vector of each candidate banner in the selected n subcategories respectively. Finally, n candidate banners with the minimum distance are selected. The n selected candidate banners are used for the ranking model, which will be described in greater detail below.
Different from the just described information retrieval method of searching for a banner from an existing taxonomy, another approach involves producing a banner using characters or words related to the input sentence and the second sentence either generated by the couplet system or by a human. FIG. 5 is a flow chart diagram demonstrating, on a high level, steps associated with this second approach to banner generation.
In accordance with step 502, related words are obtained using a translation model. In one embodiment, the model, p(a|b), is trained on a couplet corpus. For example,




  
    
      
        
          p
          ⁡
          
            (
            
              a
              ❘
              b
            
            )
          
        
        =
        
          
            count
            ⁡
            
              (
              
                a
                ,
                b
              
              )
            
          
          
            count
            ⁡
            
              (
              b
              )
            
          
        
      
    
    
      
        Eq
        .
        
          
        
        ⁢
        4
      
    
  




Where, count(a,b) represents the number of occurrences that a and b appear in the same position of a couplet. Count(b) represents the frequency of b appearing in training data. Using the translation model, for each word wi that appears in the given couplet, a word wj is selected into a related words list if p(wj|wi) is over a threshold.
In accordance with step 504, an association strength (AS) model is used to enhance the related words list. Given a couplet C(c1 . . . cn), the association strength between a word w and the couplet C is illustratively approximated using the following formula:




  
    
      
        
          As
          ⁡
          
            (
            
              w
              ,
              C
            
            )
          
        
        ≈
        
          
            ∑
            
              i
              =
              1
            
            n
          
          ⁢
          
            
          
          ⁢
          
            MI
            ⁡
            
              (
              
                w
                ,
                ci
              
              )
            
          
        
      
    
    
      
        Eq
        .
        
          
        
        ⁢
        5
      
    
  




MI (w, ci) is illustratively approximately estimated with couplet training data, i.e.,




  
    
      
        
          MI
          ⁡
          
            (
            
              w
              ,
              ci
            
            )
          
        
        =
        
          
            p
            ⁡
            
              (
              
                w
                ,
                ci
              
              )
            
          
          ⁢
          log
          ⁢
          
            
              p
              ⁡
              
                (
                
                  w
                  ,
                  ci
                
                )
              
            
            
              
                p
                ⁡
                
                  (
                  w
                  )
                
              
              ⁢
              
                p
                ⁡
                
                  (
                  ci
                  )
                
              
            
          
        
      
    
    
      
        Eq
        .
        
          
        
        ⁢
        6
      
    
  




Where, p(w)=count(w)/N, p(w,ci)=count(w,ci)/N, N is the size of couplet training data, count(w) is the number of couplets containing word w, and count(w,ci) is the number of couplets containing both w and ci. Based on the AS score, many related words for a given couplet can be obtained. Specifically, word w is added into a related words list if AS(w, C) if over a threshold.
In accordance with step 506, arbitrary numbers of words are combined in the list to form 4-characters banner candidates. Some or all of these candidate banners are used for the ranking model, which will now be described in greater detail.
To get the best banners, candidates from the two methods above are illustratively combined and ranked. One way to view the ranking process is as a classification process that selects acceptable banners and excludes unaccepted candidates. In one embodiment, ranking is performed with a ranking SVM model:

fw·({right arrow over (x)})={right arrow over (w)}*,{right arrow over (x)}  Eq. 7

Where {right arrow over (x)} indicates the feature vector of a banner candidate and {right arrow over (w)} is the weight vector of SVM model. Features used in {right arrow over (x)} illustratively can include but are not limited to (assuming B is a banner candidate):
1. p(B|LMc) according to a couplet Language Model (LM) trained on couplet data
the feature vector for candidate banners in the taxonomy is illustratively applied.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

## Claims

1. A computer-implemented method for generating an output banner associated with a Chinese language input couplet comprising first and second sentences, the method comprising:
identifying a set of related words, each related word being identified based on a number of times that the related word and a word in the input couplet occur at a same position in a couplet corpus, each of the words in the set of related words and the input couplet being in a Chinese language;
calculating an association strength between each of the related words in the set of related words and the input couplet;
utilizing a computer processor that is a component of a computer to combine related words in the set of related words in a plurality of different combinations to create a set of banner candidates, the related words in the set of related words being combined based on their association strengths;
selecting the output banner from the set of banner candidates; and
providing an output indicative of the output banner.

2. The method of claim 1, wherein identifying comprises identifying based on analysis conducted relative to a translation model.

3. The method of claim 1, wherein combining related words in the set of related words comprises arbitrarily combining related words in the set of related words so as to form a plurality of 4-character banner candidates.

4. The method of claim 1, wherein selecting the output banner comprises ranking the banner candidates contained within the set of banner candidates.

5. The method of claim 1, wherein selecting the output banner comprises ranking the banner candidates contained within the set of banner candidates relative to banner candidates not contained within the set of banner candidates.

6. The method of claim 2, wherein the translation model includes a statistical framework and is trained on the couplet corpus.

7. The method of claim 1, wherein a related word is selected into the set of related words based on a probability of the related word given a word in the input couplet.

8. The method of claim 1, wherein the input couplet comprises first and second scroll sentences.

9. The method of claim 8, wherein the first and second sentences have an equal number of words.

10. The method of claim 1, and further comprising a set of existing banners that are related to the input couplet.

11. A computer-implemented method comprising:
selecting, from a collection of existing banners, one or more existing banners that are related to a Chinese language input couplet, the Chinese language input couplet comprising first and second sentences;
using one or more computer processors to identify a set of related words based on words in the input couplet, each of the words in the set of related words and the input couplet being in a Chinese language, and to generate one or more banners by combining words in the set of related words into a plurality of different combinations;
ranking the one or more generated banners relative to the one or more existing banners; and
selecting an output banner based on the ranking.

12. The method of claim 11, wherein selecting comprises:
selecting the one or more existing banners from a database of existing banners, based on features of the existing banners and based on features of the input couplet.

13. The method of claim 12, wherein providing an output comprises displaying a selected one of the existing banners.

14. The method of claim 11, wherein each of the existing banners and the set of generated banners has a meaning that is different than the meaning of either the first and second sentence but that is complimentary to the meanings of the first and second sentence.