Advertisement
lamiastella

bad sentence stanford corenlp

Apr 21st, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.23 KB | None | 0 0
  1. python parse_doc.py
  2. Parsing Document...
  3. Tokenizing sentences...
  4. Done!
  5. Anaphora resolution for sentence: idk but it feels like trumps real talk got a little too real tonight
  6. Done!
  7. Named Entity Clustering:
  8. ('child is: ', Tree('S', [Tree('NP', [Tree('NP', [Tree('NN', ['idk'])]), Tree('PP', [Tree('CC', ['but']), Tree('NP', [Tree('S', [Tree('NP', [Tree('PRP', ['it'])]), Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])])]), Tree('JJ', ['real']), Tree('NN', ['talk'])])])]), Tree('VP', [Tree('VBD', ['got']), Tree('NP', [Tree('DT', ['a']), Tree('JJ', ['little'])]), Tree('NP-TMP', [Tree('RB', ['too']), Tree('JJ', ['real']), Tree('NN', ['tonight'])])])]))
  9. (ROOT
  10. (S
  11. (NP
  12. (NP (NN idk))
  13. (PP
  14. (CC but)
  15. (NP
  16. (S
  17. (NP (PRP it))
  18. (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
  19. (JJ real)
  20. (NN talk))))
  21. (VP
  22. (VBD got)
  23. (NP (DT a) (JJ little))
  24. (NP-TMP (RB too) (JJ real) (NN tonight)))))
  25. ('*************Node label is: ', u'ROOT')
  26. ('child is: ', Tree('NP', [Tree('NP', [Tree('NN', ['idk'])]), Tree('PP', [Tree('CC', ['but']), Tree('NP', [Tree('S', [Tree('NP', [Tree('PRP', ['it'])]), Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])])]), Tree('JJ', ['real']), Tree('NN', ['talk'])])])]))
  27. ('child is: ', Tree('VP', [Tree('VBD', ['got']), Tree('NP', [Tree('DT', ['a']), Tree('JJ', ['little'])]), Tree('NP-TMP', [Tree('RB', ['too']), Tree('JJ', ['real']), Tree('NN', ['tonight'])])]))
  28. (S
  29. (NP
  30. (NP (NN idk))
  31. (PP
  32. (CC but)
  33. (NP
  34. (S
  35. (NP (PRP it))
  36. (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
  37. (JJ real)
  38. (NN talk))))
  39. (VP
  40. (VBD got)
  41. (NP (DT a) (JJ little))
  42. (NP-TMP (RB too) (JJ real) (NN tonight))))
  43. ('*************Node label is: ', u'S')
  44. ___________I am here
  45. ('*************subchild_labels are: ', [u'NP', u'PP'])
  46. ('child is: ', Tree('NP', [Tree('NN', ['idk'])]))
  47. ('child is: ', Tree('PP', [Tree('CC', ['but']), Tree('NP', [Tree('S', [Tree('NP', [Tree('PRP', ['it'])]), Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])])]), Tree('JJ', ['real']), Tree('NN', ['talk'])])]))
  48. (NP
  49. (NP (NN idk))
  50. (PP
  51. (CC but)
  52. (NP
  53. (S
  54. (NP (PRP it))
  55. (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
  56. (JJ real)
  57. (NN talk))))
  58. ('*************Node label is: ', u'NP')
  59. ('child is: ', Tree('VBD', ['got']))
  60. ('child is: ', Tree('NP', [Tree('DT', ['a']), Tree('JJ', ['little'])]))
  61. ('child is: ', Tree('NP-TMP', [Tree('RB', ['too']), Tree('JJ', ['real']), Tree('NN', ['tonight'])]))
  62. (VP
  63. (VBD got)
  64. (NP (DT a) (JJ little))
  65. (NP-TMP (RB too) (JJ real) (NN tonight)))
  66. ('*************Node label is: ', u'VP')
  67. ('child is: ', Tree('NN', ['idk']))
  68. (NP (NN idk))
  69. ('*************Node label is: ', u'NP')
  70. ('child is: ', Tree('CC', ['but']))
  71. ('child is: ', Tree('NP', [Tree('S', [Tree('NP', [Tree('PRP', ['it'])]), Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])])]), Tree('JJ', ['real']), Tree('NN', ['talk'])]))
  72. (PP
  73. (CC but)
  74. (NP
  75. (S
  76. (NP (PRP it))
  77. (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
  78. (JJ real)
  79. (NN talk)))
  80. ('*************Node label is: ', u'PP')
  81. ('child is: ', u'got')
  82. (VBD got)
  83. ('*************Node label is: ', u'VBD')
  84. ('child is: ', Tree('DT', ['a']))
  85. ('child is: ', Tree('JJ', ['little']))
  86. (NP (DT a) (JJ little))
  87. ('*************Node label is: ', u'NP')
  88. ('child is: ', Tree('RB', ['too']))
  89. ('child is: ', Tree('JJ', ['real']))
  90. ('child is: ', Tree('NN', ['tonight']))
  91. (NP-TMP (RB too) (JJ real) (NN tonight))
  92. ('*************Node label is: ', u'NP-TMP')
  93. ('child is: ', u'idk')
  94. (NN idk)
  95. ('*************Node label is: ', u'NN')
  96. ('child is: ', u'but')
  97. (CC but)
  98. ('*************Node label is: ', u'CC')
  99. ('child is: ', Tree('S', [Tree('NP', [Tree('PRP', ['it'])]), Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])])]))
  100. ('child is: ', Tree('JJ', ['real']))
  101. ('child is: ', Tree('NN', ['talk']))
  102. (NP
  103. (S (NP (PRP it)) (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
  104. (JJ real)
  105. (NN talk))
  106. ('*************Node label is: ', u'NP')
  107. ('child is: ', u'a')
  108. (DT a)
  109. ('*************Node label is: ', u'DT')
  110. ('child is: ', u'little')
  111. (JJ little)
  112. ('*************Node label is: ', u'JJ')
  113. ('child is: ', u'too')
  114. (RB too)
  115. ('*************Node label is: ', u'RB')
  116. ('child is: ', u'real')
  117. (JJ real)
  118. ('*************Node label is: ', u'JJ')
  119. ('child is: ', u'tonight')
  120. (NN tonight)
  121. ('*************Node label is: ', u'NN')
  122. ('child is: ', Tree('NP', [Tree('PRP', ['it'])]))
  123. ('child is: ', Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])]))
  124. (S (NP (PRP it)) (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
  125. ('*************Node label is: ', u'S')
  126. ___________I am here
  127. ('*************subchild_labels are: ', [u'PRP'])
  128. ('child is: ', u'real')
  129. (JJ real)
  130. ('*************Node label is: ', u'JJ')
  131. ('child is: ', u'talk')
  132. (NN talk)
  133. ('*************Node label is: ', u'NN')
  134. ('child is: ', Tree('PRP', ['it']))
  135. (NP (PRP it))
  136. ('*************Node label is: ', u'NP')
  137. ('child is: ', Tree('VBZ', ['feels']))
  138. ('child is: ', Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])]))
  139. (VP (VBZ feels) (PP (IN like) (NP (NNS trumps))))
  140. ('*************Node label is: ', u'VP')
  141. ('child is: ', u'it')
  142. (PRP it)
  143. ('*************Node label is: ', u'PRP')
  144. ('child is: ', u'feels')
  145. (VBZ feels)
  146. ('*************Node label is: ', u'VBZ')
  147. ('child is: ', Tree('IN', ['like']))
  148. ('child is: ', Tree('NP', [Tree('NNS', ['trumps'])]))
  149. (PP (IN like) (NP (NNS trumps)))
  150. ('*************Node label is: ', u'PP')
  151. ('child is: ', u'like')
  152. (IN like)
  153. ('*************Node label is: ', u'IN')
  154. ('child is: ', Tree('NNS', ['trumps']))
  155. (NP (NNS trumps))
  156. ('*************Node label is: ', u'NP')
  157. ('child is: ', u'trumps')
  158. (NNS trumps)
  159. ('*************Node label is: ', u'NNS')
  160. ('context: ', [])
  161. [[]]
  162. Done!
  163. 2018-04-21 16:59:55.355612: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
  164. 2018-04-21 16:59:55.355646: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
  165. 2018-04-21 16:59:55.355656: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
  166. 2018-04-21 16:59:55.355677: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
  167. 2018-04-21 16:59:55.355685: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
  168. {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement