
3Ic           @   s   d  d k  Td dF f d dG f d	 dH f d dI f d dJ f d dK f d dL f d& dM f d+ dN f d1 dO f d8 dP f d? dQ f f Z e e e  Z dB   Z dC   Z e dD j o e   n dE S(R   i(   t   *t   quits	   Good-bye.s	   Plan wells   May victory be your futures   [^\?]*\?s9   Please consider whether you can answer your own question.s   Ask me no questions!s
   [0-9]+(.*)s   It is the rule in war, if our forces are ten to the enemy's one, to surround him; if five to one, to attack him; if twice as numerous, to divide our army into two.s%   There are five essentials for victorys   [A-Ca-c](.*)s3   The art of war is of vital importance to the State.s"   All warfare is based on deception.sh   If your opponent is secure at all points, be prepared for him. If he is in superior strength, evade him.sZ   If the campaign is protracted, the resources of the State will not be equal to the strain.sE   Attack him where he is unprepared, appear where you are not expected.sJ   There is no instance of a country having benefited from prolonged warfare.s   [D-Fd-f](.*)sh   The skillful soldier does not raise a second levy, neither are his supply-wagons loaded more than twice.s?   Bring war material with you from home, but forage on the enemy.sF   In war, then, let your great object be victory, not lengthy campaigns.s   To fight and conquer in all your battles is not supreme excellence; supreme excellence consists in breaking the enemy's resistance without fighting.s   [G-Ig-i](.*)sA   Heaven signifies night and day, cold and heat, times and seasons.s   The good fighters of old first put themselves beyond the possibility of defeat, and then waited for an opportunity of defeating the enemy.s8   One may know how to conquer without being able to do it.s   [J-Lj-l](.*)sI   There are three ways in which a ruler can bring misfortune upon his army.s   By commanding the army to advance or to retreat, being ignorant of the fact that it cannot obey. This is called hobbling the army.s   By attempting to govern an army in the same way as he administers a kingdom, being ignorant of the conditions which obtain in an army. This causes restlessness in the soldier's minds.s   By employing the officers of his army without discrimination, through ignorance of the military principle of adaptation to circumstances. This shakes the confidence of the soldiers.s:   He will win who knows when to fight and when not to fight.sF   He will win who knows how to handle both superior and inferior forces.sO   He will win whose army is animated by the same spirit throughout all its ranks.sF   He will win who, prepared himself, waits to take the enemy unprepared.sR   He will win who has military capacity and is not interfered with by the sovereign.s   [M-Om-o](.*)s[   If you know the enemy and know yourself, you need not fear the result of a hundred battles.s_   If you know yourself but not the enemy, for every victory gained you will also suffer a defeat.sM   If you know neither the enemy nor yourself, you will succumb in every battle.s   The control of a large force is the same principle as the control of a few men: it is merely a question of dividing up their numbers.s   [P-Rp-r](.*)sj   Security against defeat implies defensive tactics; ability to defeat the enemy means taking the offensive.sc   Standing on the defensive indicates insufficient strength; attacking, a superabundance of strength.s   He wins his battles by making no mistakes. Making no mistakes is what establishes the certainty of victory, for it means conquering an enemy that is already defeated.sm   A victorious army opposed to a routed one, is as a pound's weight placed in the scale against a single grain.sm   The onrush of a conquering force is like the bursting of pent-up waters into a chasm a thousand fathoms deep.s   [S-Us-u](.*)sd   What the ancients called a clever fighter is one who not only wins, but excels in winning with ease.sS   Hence his victories bring him neither reputation for wisdom nor credit for courage.s   Hence the skillful fighter puts himself into a position which makes defeat impossible, and does not miss the moment for defeating the enemy.s   In war the victorious strategist only seeks battle after the victory has been won, whereas he who is destined to defeat first fights and afterwards looks for victory.s   There are not more than five musical notes, yet the combinations of these five give rise to more melodies than can ever be heard.sk   Appear at points which the enemy must hasten to defend; march swiftly to places where you are not expected.s   [V-Zv-z](.*)sE   It is a matter of life and death, a road either to safety or to ruin.sB   Hold out baits to entice the enemy. Feign disorder, and crush him.su   All men can see the tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved.s   Do not repeat the tactics which have gained you one victory, but let your methods be regulated by the infinite variety of circumstances.sL   So in war, the way is to avoid what is strong and to strike at what is weak.sX   Just as water retains no constant shape, so in warfare there are no constant conditions.s   (.*)s   Your statement insults me.t    c           C   s&   d GHd GHd d GHd GHt  i   d  S(   NsC   Talk to the program by typing in plain English, using normal upper-s@   and lower-case letters and punctuation.  Enter "quit" when done.t   =iH   s   You seek enlightenment?(   t   suntsu_chatbott   converse(    (    (    s&   /p/zhu/06/nlp/nltk/nltk/chat/suntsu.pyt   suntsu_chatg   s
    	c           C   s   t    d  S(   N(   R   (    (    (    s&   /p/zhu/06/nlp/nltk/nltk/chat/suntsu.pyt   demoo   s    t   __main__N(   s	   Good-bye.s	   Plan wells   May victory be your future(   s9   Please consider whether you can answer your own question.s   Ask me no questions!(   s   It is the rule in war, if our forces are ten to the enemy's one, to surround him; if five to one, to attack him; if twice as numerous, to divide our army into two.s%   There are five essentials for victory(   s3   The art of war is of vital importance to the State.s"   All warfare is based on deception.sh   If your opponent is secure at all points, be prepared for him. If he is in superior strength, evade him.sZ   If the campaign is protracted, the resources of the State will not be equal to the strain.sE   Attack him where he is unprepared, appear where you are not expected.sJ   There is no instance of a country having benefited from prolonged warfare.(   sh   The skillful soldier does not raise a second levy, neither are his supply-wagons loaded more than twice.s?   Bring war material with you from home, but forage on the enemy.sF   In war, then, let your great object be victory, not lengthy campaigns.s   To fight and conquer in all your battles is not supreme excellence; supreme excellence consists in breaking the enemy's resistance without fighting.(   sA   Heaven signifies night and day, cold and heat, times and seasons.s   It is the rule in war, if our forces are ten to the enemy's one, to surround him; if five to one, to attack him; if twice as numerous, to divide our army into two.s   The good fighters of old first put themselves beyond the possibility of defeat, and then waited for an opportunity of defeating the enemy.s8   One may know how to conquer without being able to do it.(
   sI   There are three ways in which a ruler can bring misfortune upon his army.s   By commanding the army to advance or to retreat, being ignorant of the fact that it cannot obey. This is called hobbling the army.s   By attempting to govern an army in the same way as he administers a kingdom, being ignorant of the conditions which obtain in an army. This causes restlessness in the soldier's minds.s   By employing the officers of his army without discrimination, through ignorance of the military principle of adaptation to circumstances. This shakes the confidence of the soldiers.s%   There are five essentials for victorys:   He will win who knows when to fight and when not to fight.sF   He will win who knows how to handle both superior and inferior forces.sO   He will win whose army is animated by the same spirit throughout all its ranks.sF   He will win who, prepared himself, waits to take the enemy unprepared.sR   He will win who has military capacity and is not interfered with by the sovereign.(   s[   If you know the enemy and know yourself, you need not fear the result of a hundred battles.s_   If you know yourself but not the enemy, for every victory gained you will also suffer a defeat.sM   If you know neither the enemy nor yourself, you will succumb in every battle.s   The control of a large force is the same principle as the control of a few men: it is merely a question of dividing up their numbers.(   sj   Security against defeat implies defensive tactics; ability to defeat the enemy means taking the offensive.sc   Standing on the defensive indicates insufficient strength; attacking, a superabundance of strength.s   He wins his battles by making no mistakes. Making no mistakes is what establishes the certainty of victory, for it means conquering an enemy that is already defeated.sm   A victorious army opposed to a routed one, is as a pound's weight placed in the scale against a single grain.sm   The onrush of a conquering force is like the bursting of pent-up waters into a chasm a thousand fathoms deep.(   sd   What the ancients called a clever fighter is one who not only wins, but excels in winning with ease.sS   Hence his victories bring him neither reputation for wisdom nor credit for courage.s   Hence the skillful fighter puts himself into a position which makes defeat impossible, and does not miss the moment for defeating the enemy.s   In war the victorious strategist only seeks battle after the victory has been won, whereas he who is destined to defeat first fights and afterwards looks for victory.s   There are not more than five musical notes, yet the combinations of these five give rise to more melodies than can ever be heard.sk   Appear at points which the enemy must hasten to defend; march swiftly to places where you are not expected.(   sE   It is a matter of life and death, a road either to safety or to ruin.sB   Hold out baits to entice the enemy. Feign disorder, and crush him.su   All men can see the tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved.s   Do not repeat the tactics which have gained you one victory, but let your methods be regulated by the infinite variety of circumstances.sL   So in war, the way is to avoid what is strong and to strike at what is weak.sX   Just as water retains no constant shape, so in warfare there are no constant conditions.(   s   Your statement insults me.R   (   t   utilt   pairst   Chatt   reflectionsR   R   R   t   __name__(    (    (    s&   /p/zhu/06/nlp/nltk/nltk/chat/suntsu.pys   <module>   s   
                                          		