Advertisement
logicmoo

Untitled

Aug 13th, 2018
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 9.78 KB | None | 0 0
  1.  
  2. English: "I see you".
  3.  
  4.  %% DEBUG
  5. Eng: ['I', see, you].
  6.  
  7.  
  8. (S
  9.   (I see you))
  10. [[txt, 'I'], 1:1, 1.0-nns, 0.2-'WHPronoun', 0.2-'SubjectPronoun', 0.2-'SingularPronoun', 0.2-'ReflexivePronoun', 0.2-'ReciprocalPronoun', 0.2-'Pronoun-SubjectOrObject', 0.2-'Pronoun', 0.2-'PossessivePronoun-Post', 0.2-'PossessivePronoun', 0.2-'PluralPronoun', 0.2-'ObjectPronoun', 0.2-'Number-SP', 0.2-'IndefinitePronoun', 0.2-'ExpletivePronoun', 0.2-'DualPronoun', 0.000443-nn, 0.000295-nnp, 0.000148-fw, 0.000148-nns]
  11. [[txt, see], 2:2, 1.0-vbp, 0.607352-vb, 0.233918-vb, 0.2-'Verb', 0.081871-vbp, 0.000835-uh]
  12. [[txt, you], 3:3, 1.0-prp, 0.434803-ppss, 0.25-vbp, 0.25-rp, 0.207371-ppo, 0.2-'WHPronoun', 0.2-'WHDeterminer', 0.2-'SubjectPronoun', 0.2-'SingularPronoun', 0.2-'ReflexivePronoun', 0.2-'ReciprocalPronoun', 0.2-'Pronoun-SubjectOrObject', 0.2-'Pronoun', 0.2-'Postdeterminer', 0.2-'PossessivePronoun-Post', 0.2-'PossessivePronoun', 0.2-'PluralPronoun', 0.2-'ObjectPronoun', 0.2-'Number-SP', 0.2-'IndefinitePronoun', 0.2-'ExpletivePronoun', 0.2-'DualPronoun', 0.2-'Determiner-ClassC', 0.2-'Determiner-ClassB', 0.2-'Determiner-ClassA', 0.2-'Determiner-Central', 0.2-'Determiner', 0.184745-prp, 0.001633-'ppss-nc', 0.000933-'ppo-nc', 0.000233-'ppo-hl', 0.000233-'ppss-hl']
  13.  
  14.  
  15. (declaritive
  16.   (thereExists ?SPEAKER
  17.     (and
  18.       (isa ?SPEAKER Person)
  19.       (debug resort1
  20.         (debug unit1
  21.           (and
  22.             (and
  23.               (isa ?YOU-124 Event)
  24.               (or
  25.                 (and
  26.                   (isa ?YOU-124 VisitingSomeone)
  27.                   (performedBy ?YOU-124 ?SPEAKER)
  28.                   (toLocation ?YOU-124 ?G307275))
  29.                 (and
  30.                   (isa ?YOU-124 VisualPerception)
  31.                   (performedBy ?YOU-124 ?SPEAKER)
  32.                   (perceivedThings ?YOU-124 ?G307275))
  33.                 (awareOf ?SPEAKER ?G307275)))
  34.             (debug unit1
  35.               (isa_event_verb ?YOU-124
  36.                 (VerbFn You-TheWord)))))))))
  37.  
  38.  For sentence: "I see you".
  39.  
  40.  %% DEBUG
  41. English: "I seen the wood".
  42.  
  43.  %% DEBUG
  44. Eng: ['I', seen, the, wood].
  45.  
  46. learnText([seen])
  47. learnText([wood])
  48.  
  49. (S
  50.   (I seen the wood))
  51. [[txt, 'I'], 1:1, 1.0-nnp, 0.2-'WHPronoun', 0.2-'SubjectPronoun', 0.2-'SingularPronoun', 0.2-'ReflexivePronoun', 0.2-'ReciprocalPronoun', 0.2-'Pronoun-SubjectOrObject', 0.2-'Pronoun', 0.2-'PossessivePronoun-Post', 0.2-'PossessivePronoun', 0.2-'PluralPronoun', 0.2-'ObjectPronoun', 0.2-'Number-SP', 0.2-'IndefinitePronoun', 0.2-'ExpletivePronoun', 0.2-'DualPronoun', 0.000443-nn, 0.000295-nnp, 0.000148-fw, 0.000148-nns]
  52. [[txt, seen], 2:2, 1.0-vbd, 0.988345-vbn, 0.25-vbd, 0.2-'NongradableAdjective', 0.2-'Adjective-Ed', 0.2-'Verb', 0.2-'Adjective-Gradable', 0.2-'Adjective', 0.002331-jj]
  53. [[txt, the], 3:3, 1.0-dt, 0.459398-at, 0.415235-dt, 0.25-vbd, 0.25-pdt, 0.25-'nn|dt', 0.25-in, 0.2-'WHDeterminer', 0.2-'Postdeterminer', 0.2-'Determiner-Definite', 0.2-'Determiner-ClassC', 0.2-'Determiner-ClassB', 0.2-'Determiner-ClassA', 0.2-'Determiner-Central', 0.2-'Determiner', 0.001645-'at-tl', 0.001269-'at-hl', 0.000192-'at-nc', 5.9e-005-jj, 4.4e-005-nnp, 2.2e-005-nil, 7e-006-'at-tl-hl', 7e-006-cd, 7e-006-nn, 7e-006-vbp]
  54. [[txt, wood], 4:4, 1.0-nn, 0.811765-nn, 0.2-'ProperNoun', 0.2-'MassNoun', 0.2-'ProperMassNoun', 0.2-'MassNoun-Generic', 0.2-'CommonNoun', 0.2-'Verb']
  55.  
  56.  
  57. (declaritive
  58.   (thereExists ?SPEAKER
  59.     (and
  60.       (isa ?SPEAKER Person)
  61.       (debug res2
  62.         (thereExists ?THE-WOOD-1
  63.           (implies
  64.             (and
  65.               (isa ?THE-WOOD-1 Thing)
  66.               (isa ?THE-WOOD-1
  67.                 (OneOfFn WoodedArea Wood-GolfClub Wood)))
  68.             (debug unit1
  69.               (and
  70.                 (isa ?SENTENCE-EVENT-1484 Event)
  71.                 (or
  72.                   (and
  73.                     (isa ?SENTENCE-EVENT-1484 VisitingSomeone)
  74.                     (performedBy ?SENTENCE-EVENT-1484 ?SPEAKER)
  75.                     (toLocation ?SENTENCE-EVENT-1484 ?THE-WOOD-1))
  76.                   (and
  77.                     (isa ?SENTENCE-EVENT-1484 VisualPerception)
  78.                     (performedBy ?SENTENCE-EVENT-1484 ?SPEAKER)
  79.                     (perceivedThings ?SENTENCE-EVENT-1484 ?THE-WOOD-1))
  80.                   (awareOf ?SPEAKER ?THE-WOOD-1))))))))))
  81.  
  82.  For sentence: "I seen the wood".
  83.  
  84.  %% DEBUG
  85. English: "I sawed the wood".
  86.  
  87.  %% DEBUG
  88. Eng: ['I', sawed, the, wood].
  89.  
  90. learnText([sawed])
  91. substPos([nn, vb, surroundtag, nnp, in], [[txt, sawed], 2:2, 1.0-nn, 0.85-nn, 0.2-'NongradableAdjective', 0.2-'Adjective-Ed', 0.2-'Verb', 0.2-'Adjective-Gradable', 0.2-'Adjective', 0.195-jj, 0.02-ns, 0.01-vbz], nn, vb, [[txt, sawed], 2:2, 1.0-vb, 0.85-vb, 0.2-'NongradableAdjective', 0.2-'Adjective-Ed', 0.2-'Verb', 0.2-'Adjective-Gradable', 0.2-'Adjective', 0.195-jj, 0.02-ns, 0.01-vbz])
  92.  
  93. (S
  94.   (I sawed the wood))
  95. [[txt, 'I'], 1:1, 1.0-nnp, 0.2-'WHPronoun', 0.2-'SubjectPronoun', 0.2-'SingularPronoun', 0.2-'ReflexivePronoun', 0.2-'ReciprocalPronoun', 0.2-'Pronoun-SubjectOrObject', 0.2-'Pronoun', 0.2-'PossessivePronoun-Post', 0.2-'PossessivePronoun', 0.2-'PluralPronoun', 0.2-'ObjectPronoun', 0.2-'Number-SP', 0.2-'IndefinitePronoun', 0.2-'ExpletivePronoun', 0.2-'DualPronoun', 0.000443-nn, 0.000295-nnp, 0.000148-fw, 0.000148-nns]
  96. [[txt, sawed], 2:2, 1.0-vb, 0.85-vb, 0.2-'NongradableAdjective', 0.2-'Adjective-Ed', 0.2-'Verb', 0.2-'Adjective-Gradable', 0.2-'Adjective', 0.195-jj, 0.02-ns, 0.01-vbz]
  97. [[txt, the], 3:3, 1.0-in, 0.459398-at, 0.415235-dt, 0.25-vbd, 0.25-pdt, 0.25-'nn|dt', 0.25-in, 0.2-'WHDeterminer', 0.2-'Postdeterminer', 0.2-'Determiner-Definite', 0.2-'Determiner-ClassC', 0.2-'Determiner-ClassB', 0.2-'Determiner-ClassA', 0.2-'Determiner-Central', 0.2-'Determiner', 0.001645-'at-tl', 0.001269-'at-hl', 0.000192-'at-nc', 5.9e-005-jj, 4.4e-005-nnp, 2.2e-005-nil, 7e-006-'at-tl-hl', 7e-006-cd, 7e-006-nn, 7e-006-vbp]
  98. [[txt, wood], 4:4, 1.0-nn, 0.811765-nn, 0.2-'ProperNoun', 0.2-'MassNoun', 0.2-'ProperMassNoun', 0.2-'MassNoun-Generic', 0.2-'CommonNoun', 0.2-'Verb']
  99.  
  100.  
  101. (declaritive
  102.   (thereExists ?SPEAKER
  103.     (and
  104.       (isa ?SPEAKER Person)
  105.       (debug res2
  106.         (and
  107.           (isa ?SENTENCE-EVENT-1485
  108.             (PrepositionFn The-TheWord ?SENTENCE-EVENT-1485))
  109.           (implies
  110.             (and
  111.               (isa ?WOOD-3 Thing)
  112.               (isa ?WOOD-3
  113.                 (OneOfFn WoodedArea Wood-GolfClub Wood)))
  114.             (and
  115.               (preActors ?SENTENCE-EVENT-1485 ?SPEAKER)
  116.               (and
  117.                 (isa ?SENTENCE-EVENT-1485 SawingSomething)
  118.                 (objectOfStateChange ?SENTENCE-EVENT-1485 ?SPEAKER)))))))))
  119.  
  120.  For sentence: "I sawed the wood".
  121.  
  122.  %% DEBUG
  123. English: "I see two books on a shelf".
  124.  
  125.  %% DEBUG
  126. Eng: ['I', see, two, books, on, a, shelf].
  127.  
  128.  
  129. (S
  130.   (I see two books on a shelf))
  131. [[txt, 'I'], 1:1, 1.0-nnp, 0.2-'WHPronoun', 0.2-'SubjectPronoun', 0.2-'SingularPronoun', 0.2-'ReflexivePronoun', 0.2-'ReciprocalPronoun', 0.2-'Pronoun-SubjectOrObject', 0.2-'Pronoun', 0.2-'PossessivePronoun-Post', 0.2-'PossessivePronoun', 0.2-'PluralPronoun', 0.2-'ObjectPronoun', 0.2-'Number-SP', 0.2-'IndefinitePronoun', 0.2-'ExpletivePronoun', 0.2-'DualPronoun', 0.000443-nn, 0.000295-nnp, 0.000148-fw, 0.000148-nns]
  132. [[txt, see], 2:2, 1.0-vb, 0.607352-vb, 0.233918-vb, 0.2-'Verb', 0.081871-vbp, 0.000835-uh]
  133. [[txt, two], 3:3, 1.0-cd, 0.930201-cd, 0.25-ls, 0.2-'WHPronoun', 0.2-'WHDeterminer', 0.2-'SubjectPronoun', 0.2-'SingularPronoun', 0.2-'ReflexivePronoun', 0.2-'ReciprocalPronoun', 0.2-'Pronoun-SubjectOrObject', 0.2-'Pronoun', 0.2-'Postdeterminer', 0.2-'PossessivePronoun-Post', 0.2-'PossessivePronoun', 0.2-'PluralPronoun', 0.2-'ObjectPronoun', 0.2-'Number-SP', 0.2-'IndefinitePronoun', 0.2-'ExpletivePronoun', 0.2-'DualPronoun', 0.2-'Determiner-ClassC', 0.2-'Determiner-ClassB', 0.2-'Determiner-ClassA', 0.2-'Determiner-Central', 0.2-'Determiner', 0.2-'CommonNoun', 0.00034-'cd-hl']
  134. [[txt, books], 4:4, 1.0-nns, 0.94012-nns, 0.2-'Verb', 0.2-'CommonNoun', 0.005988-'nn|pos']
  135. [[txt, on], 5:5, 1.0-in, 0.899787-in, 0.25-rbr, 0.25-nnp, 0.25-jj, 0.2-'WHAdverb', 0.2-'VerbParticle', 0.2-'Preposition-Locative', 0.2-'Preposition-Directional-Telic', 0.2-'Preposition', 0.2-'Adverb', 0.045235-rp, 0.003698-rb, 0.002347-'in-tl', 0.001565-'in-hl', 0.000356-'in-nc', 0.000142-nil]
  136. [[txt, a], 6:6, 1.0-dt, 0.3-dt, 0.2-'CommonNoun', 0.2-'WHDeterminer', 0.2-'Postdeterminer', 0.2-'Determiner-Indefinite', 0.2-'Determiner-ClassC', 0.2-'Determiner-ClassB', 0.2-'Determiner-ClassA', 0.2-'Determiner-Central', 0.2-'Determiner']
  137. [[txt, shelf], 7:7, 1.0-nn, 1.0-nn, 0.2-'CommonNoun']
  138.  
  139.  
  140. (declaritive
  141.   (thereExists ?SPEAKER
  142.     (and
  143.       (isa ?SPEAKER Person)
  144.       (debug res3
  145.         (and
  146.           (isa ?SENTENCE-EVENT-1501
  147.             (PrepositionFn On-TheWord ?SENTENCE-EVENT-1501))
  148.           (implies
  149.             (and
  150.               (isa ?BOOKS-ON-A-SHELF-32
  151.                 (OneOfFn BookCopy Reservation))
  152.               (isa ?BOOKS-ON-A-SHELF-32 TwoDollarBill-US))
  153.             (thereExists ?A-SHELF-815
  154.               (implies
  155.                 (and
  156.                   (isa ?A-SHELF-815 Thing)
  157.                   (isa ?A-SHELF-815 ShelfInABuilding))
  158.                 (debug unit1
  159.                   (and
  160.                     (isa ?SENTENCE-EVENT-1501 Event)
  161.                     (or
  162.                       (and
  163.                         (isa ?SENTENCE-EVENT-1501 VisitingSomeone)
  164.                         (performedBy ?SENTENCE-EVENT-1501 ?SPEAKER)
  165.                         (toLocation ?SENTENCE-EVENT-1501 ?A-SHELF-815))
  166.                       (and
  167.                         (isa ?SENTENCE-EVENT-1501 VisualPerception)
  168.                         (performedBy ?SENTENCE-EVENT-1501 ?SPEAKER)
  169.                         (perceivedThings ?SENTENCE-EVENT-1501 ?A-SHELF-815))
  170.                       (awareOf ?SPEAKER ?A-SHELF-815))))))))))))
  171.  
  172.  For sentence: "I see two books on a shelf".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement