home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 August / DPCB0898.iso / Home / Powerpro / INSTALL.CMP / IETMPLT.TXT < prev    next >
Text File  |  1997-06-13  |  10KB  |  372 lines

  1. //
  2. //
  3. //  IETMPLT.TXT
  4. //  Italian-English Sample Templates for Power Translator 6.x
  5. //
  6. //
  7.  
  8.  
  9. // *********************************************************************
  10. // NOUN1 DI NOUN2 = NOUN2 NOUN1
  11. //
  12. // Examples: agencia di viaggi = travel agency
  13. //           certificato di nascita = birth certificate
  14. //
  15. // SOURCE.1 = agenzia; SOURCE.2 = viaggi; TARGET.1 = travel; TARGET.2 = agency
  16. // *********************************************************************
  17.  
  18. // RULESET1
  19. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  20.  
  21. <HasAttr Noun:"SOURCE.1">
  22. <HasAttr Preposition:"di">
  23. <HasAttr Noun && Word=="SOURCE.2">
  24.     ==> <1 SetAttr Noun>
  25.         <2 SetAttr Preposition>
  26.         <3 SetAttr Noun
  27.            Strength=50>;
  28.  
  29.  
  30. // RULESET2
  31. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  32.  
  33. <NodeType NounBar>
  34.         /
  35.         <NodeType NounBar>
  36.             /
  37.             <NodeType NounTheta>
  38.                 /
  39.                 <IsAttr Noun:"SOURCE.1">
  40.                 \
  41.             \
  42.         <NodeType PrepositionPhrase>
  43.             /
  44.             <NodeType PrepositionBar && Primary.IsAttr Preposition:"di">
  45.             <NodeType NounPhrase>
  46.                 /
  47.                 <NodeType NounBar>
  48.                     /
  49.                     <NodeType NounTheta>
  50.                         /
  51.                         <Word=="SOURCE.2">
  52.                         \
  53.                     \
  54.                 \
  55.             \
  56.         \
  57.         ==> <1>
  58.                 /
  59.                 <1.1.1>
  60.                     /
  61.                     AddStringNode "TARGET.1"
  62.                     <1.1.1.1 Target.ChangeWord "TARGET.2">
  63.                     \
  64.                 <1.1 Delete>
  65.                 <1.2 Delete>
  66.                 <1.2.1 Delete>
  67.                 <1.2.2 Delete>
  68.                 <1.2.2.1 Delete>
  69.                 <1.2.2.1.1 Delete>
  70.                 <1.2.2.1.1.1 Delete>
  71.                 \;
  72.  
  73.  
  74. // due agenzie di viaggi
  75. <NodeType NounBar>
  76.     /
  77.     <NodeType QuantifierBar>
  78.     <NodeType NounBar>
  79.         /
  80.         <NodeType NounTheta>
  81.             /
  82.             <IsAttr Noun:"SOURCE.1">
  83.             \
  84.        \
  85.     \
  86.     <NodeType PrepositionPhrase>
  87.         /
  88.         <NodeType PrepositionBar && Primary.IsAttr Preposition:"di">
  89.         <NodeType NounPhrase>
  90.             /
  91.             <NodeType NounBar>
  92.                 /
  93.                 <NodeType NounTheta>
  94.                     /
  95.                     <IsAttr Noun && Word=="SOURCE.2">
  96.                     \
  97.                 \
  98.             \
  99.         \
  100.  
  101.     ==>
  102.  
  103.   <1>
  104.     /
  105.     <1.1>
  106.     <1.2>
  107.         /
  108.         <1.2.1>
  109.             /
  110.             AddStringNode "TARGET.1"
  111.             <1.2.1.1 Target.ChangeWord "TARGET.2">
  112.             \
  113.          \
  114.      \
  115.      <2 Delete>
  116.      <2.1 Delete>
  117.      <2.2 Delete>
  118.      <2.2.1 Delete>
  119.      <2.2.1.1 Delete>
  120.      <2.2.1.1.1 Delete>;
  121.  
  122.  
  123. // *********************************************************************
  124. // NOUN DI NOUN = NOUN
  125. //
  126. // Example: donna di casa = housewife
  127. //
  128. // SOURCE.1 = donna; SOURCE.2 = casa; TARGET.1 = housewife
  129. // *********************************************************************
  130.  
  131. // RULESET1
  132. // Procedure = Top Traverse; Stage = Disambiguation ; Key = SOURCE.1
  133.  
  134. <HasAttr Noun:"SOURCE.1">
  135. <HasAttr Preposition:"di">
  136. <HasAttr Noun && Word=="SOURCE.2">
  137.     ==> <1 SetAttr Noun>
  138.         <2 SetAttr Preposition>
  139.         <3 SetAttr Noun
  140.            Strength=50>;
  141.  
  142.  
  143. // RULESET2
  144. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  145.  
  146. <NodeType NounBar>
  147.     /
  148.         <NodeType NounBar>
  149.             /
  150.             <NodeType NounTheta>
  151.                 /
  152.                 <IsAttr Noun:"SOURCE.1">
  153.                 \
  154.             \
  155.         <NodeType PrepositionPhrase>
  156.             /
  157.             <NodeType PrepositionBar && Primary.IsAttr Preposition:"di">
  158.             <NodeType NounPhrase>
  159.                 /
  160.                 <NodeType NounBar>
  161.                     /
  162.                     <NodeType NounTheta>
  163.                         /
  164.                         <Word=="SOURCE.2">
  165.                         \
  166.                     \
  167.                 \
  168.             \
  169.         \
  170.         ==> <1>
  171.                 /
  172.                 <1.1.1>
  173.                     /
  174.                     <1.1.1.1 Target.ChangeWord "TARGET.1">
  175.                     \
  176.                 <1.1 Delete>
  177.                 <1.2 Delete>
  178.                 <1.2.1 Delete>
  179.                 <1.2.2 Delete>
  180.                 <1.2.2.1 Delete>
  181.                 <1.2.2.1.1 Delete>
  182.                 <1.2.2.1.1.1 Delete>
  183.                 \;
  184.  
  185.  
  186. // due donne di casa (two housewives)
  187. <NodeType NounBar>
  188.     /
  189.     <NodeType QuantifierBar>
  190.     <NodeType NounBar>
  191.         /
  192.         <NodeType NounTheta>
  193.             /
  194.             <IsAttr Noun:"SOURCE.1">
  195.             \
  196.        \
  197.     \
  198.     <NodeType PrepositionPhrase>
  199.         /
  200.         <NodeType PrepositionBar && Primary.IsAttr Preposition:"di">
  201.         <NodeType NounPhrase>
  202.             /
  203.             <NodeType NounBar>
  204.                 /
  205.                 <NodeType NounTheta>
  206.                     /
  207.                     <IsAttr Noun && Word=="SOURCE.2">
  208.                     \
  209.                 \
  210.             \
  211.         \
  212.  
  213.     ==>
  214.  
  215.   <1>
  216.     /
  217.     <1.1>
  218.     <1.2>
  219.         /
  220.         <1.2.1>
  221.             /
  222.             <1.2.1.1 Target.ChangeWord "TARGET.1">
  223.             \
  224.          \
  225.      \
  226.      <2 Delete>
  227.      <2.1 Delete>
  228.      <2.2 Delete>
  229.      <2.2.1 Delete>
  230.      <2.2.1.1 Delete>
  231.      <2.2.1.1.1 Delete>;
  232.  
  233.  
  234. // *********************************************************************
  235. // NOUN ADJECTIVE = ADJECTIVE NOUN (Other than the natural translation)
  236. //
  237. // Examples: accoglienza calorosa = warm welcome
  238. //           disco rigido = hard disk
  239. //
  240. // SOURCE.1=accoglienza; SOURCE.2=caloroso; TARGET.1=warm; TARGET.2=welcome
  241. //
  242. // Notice that the adjective is in its non-inflected form.
  243. // *********************************************************************
  244.  
  245. // RULESET1
  246. // Procedure = Top Traverse; Stage = Disambiguation; Key = SOURCE.1
  247.  
  248. <HasAttr Noun:"SOURCE.1">
  249. <HasAttr Adjective:"SOURCE.2">
  250.         ==> <1 SetAttr Noun>
  251.             <2 SetAttr Adjective>;
  252.  
  253.  
  254. // RULESET2
  255. // Procedure = Depth Traverse; Stage = Frame; Key = SOURCE.1
  256.  
  257. <NodeType NounBar>
  258.         /
  259.         <NodeType NounTheta>
  260.             /
  261.             <IsAttr Noun:"SOURCE.1">
  262.             \
  263.         \
  264.     <NodeType AdjectivePhrase>
  265.         /
  266.         <NodeType AdjectiveBar>
  267.             /
  268.             <IsAttr Adjective:"SOURCE.2">
  269.             \
  270.         \
  271.         ==> <2>
  272.                 /
  273.                 <2.1>
  274.                     /
  275.                     <2.1.1 Target.ChangeWord "TARGET.1">
  276.                     \
  277.                 \
  278.             <1>
  279.                 /
  280.                 <1.1>
  281.                     /
  282.                     <1.1.1 Target.ChangeWord "TARGET.2">
  283.                     \
  284.                 \;
  285.  
  286.  
  287.  
  288. // *********************************************************************
  289. //
  290. //  VERB FRAMES
  291. //
  292. // *********************************************************************
  293.  
  294.  
  295. // *********************************************************************
  296. // VERB + DIRECT OBJECT ==> VERB
  297. //
  298. // Example: chiedere scusa ==> apologize
  299. //
  300. // SOURCE.1 = chiedere; SOURCE.2 = scusa; TARGET.1 = apologize
  301. //
  302. // "chiedere"Obj (SX_Direct,Primary.IsAttr Noun:"scusa")
  303. //     ==> "apologize" Delete (SX_Direct);
  304. // *********************************************************************
  305.  
  306. // RULESET1
  307. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  308.  
  309. "SOURCE.1" Obj(SX_Direct,Primary.Word=="SOURCE.2")
  310.     ==> "TARGET.1" Delete (SX_Direct);
  311.  
  312.  
  313. // *********************************************************************
  314. // VERB + DIRECT OBJECT ==> VERB(different meaning) + DIRECT OBJECT
  315. //
  316. // Example: cercare (giustizia) ==> seek (justice)
  317. //
  318. // SOURCE.1 = cercare; TARGET.1 = seek
  319. //
  320. // "cercare" Obj (SX_Direct,Primary.IsAttr Noun+"Abstract")
  321. //     ==> "seek";
  322. // *********************************************************************
  323.  
  324. // RULESET1
  325. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1
  326.  
  327. "SOURCE.1" Obj(SX_Direct,Primary.IsAttr Noun+"Abstract")
  328.     ==> "TARGET.1";
  329.  
  330.  
  331. // *********************************************************************
  332. // VERB + PREPOSITIONAL OBJECT ==> VERB + DIRECT OBJECT
  333. //
  334. // Example: ricordarsi di ==> remember
  335. //
  336. // SOURCE.1 = ricordarsi; SOURCE.2 = di; TARGET.1 = remember
  337. //
  338. // "ricordarsi" Obj ("di")
  339. //     ==> "remember" Make ("di",SX_Direct);
  340. // *********************************************************************
  341.  
  342. // RULESET1
  343. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1 (non-reflexive form)
  344.  
  345. "SOURCE.1" Obj("SOURCE.2")
  346.     ==> "TARGET.1" Make("SOURCE.2",SX_Direct);
  347.  
  348.  
  349. // =====================================================================
  350. // VERB + PREPOSITIONAL OBJECT ==> VERB + PREPOSITIONAL OBJECT
  351. //
  352. // Example: preoccuparsi di ==> worry about
  353. //
  354. // SOURCE.1 = preoccuparsi; SOURCE.2 = di; TARGET.1 = worry; TARGET.2 = about
  355. //
  356. // "preoccuparsi" Obj ("di")
  357. //     ==> "worry" Make ("di","about");
  358. // *********************************************************************
  359.  
  360. // RULESET1
  361. // Procedure = Verb Frame; Stage = Frame; Key = SOURCE.1 (non-reflexive form)
  362.  
  363. "SOURCE.1" Obj("SOURCE.2")
  364.     ==> "TARGET.1" Make("SOURCE.2", "TARGET.2");
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.