Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- python parse_doc.py
- Parsing Document...
- Tokenizing sentences...
- Done!
- Anaphora resolution for sentence: idk but it feels like trumps real talk got a little too real tonight
- Done!
- Named Entity Clustering:
- ('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'])])])]))
- (ROOT
- (S
- (NP
- (NP (NN idk))
- (PP
- (CC but)
- (NP
- (S
- (NP (PRP it))
- (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
- (JJ real)
- (NN talk))))
- (VP
- (VBD got)
- (NP (DT a) (JJ little))
- (NP-TMP (RB too) (JJ real) (NN tonight)))))
- ('*************Node label is: ', u'ROOT')
- ('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'])])])]))
- ('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'])])]))
- (S
- (NP
- (NP (NN idk))
- (PP
- (CC but)
- (NP
- (S
- (NP (PRP it))
- (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
- (JJ real)
- (NN talk))))
- (VP
- (VBD got)
- (NP (DT a) (JJ little))
- (NP-TMP (RB too) (JJ real) (NN tonight))))
- ('*************Node label is: ', u'S')
- ___________I am here
- ('*************subchild_labels are: ', [u'NP', u'PP'])
- ('child is: ', Tree('NP', [Tree('NN', ['idk'])]))
- ('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'])])]))
- (NP
- (NP (NN idk))
- (PP
- (CC but)
- (NP
- (S
- (NP (PRP it))
- (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
- (JJ real)
- (NN talk))))
- ('*************Node label is: ', u'NP')
- ('child is: ', Tree('VBD', ['got']))
- ('child is: ', Tree('NP', [Tree('DT', ['a']), Tree('JJ', ['little'])]))
- ('child is: ', Tree('NP-TMP', [Tree('RB', ['too']), Tree('JJ', ['real']), Tree('NN', ['tonight'])]))
- (VP
- (VBD got)
- (NP (DT a) (JJ little))
- (NP-TMP (RB too) (JJ real) (NN tonight)))
- ('*************Node label is: ', u'VP')
- ('child is: ', Tree('NN', ['idk']))
- (NP (NN idk))
- ('*************Node label is: ', u'NP')
- ('child is: ', Tree('CC', ['but']))
- ('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'])]))
- (PP
- (CC but)
- (NP
- (S
- (NP (PRP it))
- (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
- (JJ real)
- (NN talk)))
- ('*************Node label is: ', u'PP')
- ('child is: ', u'got')
- (VBD got)
- ('*************Node label is: ', u'VBD')
- ('child is: ', Tree('DT', ['a']))
- ('child is: ', Tree('JJ', ['little']))
- (NP (DT a) (JJ little))
- ('*************Node label is: ', u'NP')
- ('child is: ', Tree('RB', ['too']))
- ('child is: ', Tree('JJ', ['real']))
- ('child is: ', Tree('NN', ['tonight']))
- (NP-TMP (RB too) (JJ real) (NN tonight))
- ('*************Node label is: ', u'NP-TMP')
- ('child is: ', u'idk')
- (NN idk)
- ('*************Node label is: ', u'NN')
- ('child is: ', u'but')
- (CC but)
- ('*************Node label is: ', u'CC')
- ('child is: ', Tree('S', [Tree('NP', [Tree('PRP', ['it'])]), Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])])]))
- ('child is: ', Tree('JJ', ['real']))
- ('child is: ', Tree('NN', ['talk']))
- (NP
- (S (NP (PRP it)) (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
- (JJ real)
- (NN talk))
- ('*************Node label is: ', u'NP')
- ('child is: ', u'a')
- (DT a)
- ('*************Node label is: ', u'DT')
- ('child is: ', u'little')
- (JJ little)
- ('*************Node label is: ', u'JJ')
- ('child is: ', u'too')
- (RB too)
- ('*************Node label is: ', u'RB')
- ('child is: ', u'real')
- (JJ real)
- ('*************Node label is: ', u'JJ')
- ('child is: ', u'tonight')
- (NN tonight)
- ('*************Node label is: ', u'NN')
- ('child is: ', Tree('NP', [Tree('PRP', ['it'])]))
- ('child is: ', Tree('VP', [Tree('VBZ', ['feels']), Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])])]))
- (S (NP (PRP it)) (VP (VBZ feels) (PP (IN like) (NP (NNS trumps)))))
- ('*************Node label is: ', u'S')
- ___________I am here
- ('*************subchild_labels are: ', [u'PRP'])
- ('child is: ', u'real')
- (JJ real)
- ('*************Node label is: ', u'JJ')
- ('child is: ', u'talk')
- (NN talk)
- ('*************Node label is: ', u'NN')
- ('child is: ', Tree('PRP', ['it']))
- (NP (PRP it))
- ('*************Node label is: ', u'NP')
- ('child is: ', Tree('VBZ', ['feels']))
- ('child is: ', Tree('PP', [Tree('IN', ['like']), Tree('NP', [Tree('NNS', ['trumps'])])]))
- (VP (VBZ feels) (PP (IN like) (NP (NNS trumps))))
- ('*************Node label is: ', u'VP')
- ('child is: ', u'it')
- (PRP it)
- ('*************Node label is: ', u'PRP')
- ('child is: ', u'feels')
- (VBZ feels)
- ('*************Node label is: ', u'VBZ')
- ('child is: ', Tree('IN', ['like']))
- ('child is: ', Tree('NP', [Tree('NNS', ['trumps'])]))
- (PP (IN like) (NP (NNS trumps)))
- ('*************Node label is: ', u'PP')
- ('child is: ', u'like')
- (IN like)
- ('*************Node label is: ', u'IN')
- ('child is: ', Tree('NNS', ['trumps']))
- (NP (NNS trumps))
- ('*************Node label is: ', u'NP')
- ('child is: ', u'trumps')
- (NNS trumps)
- ('*************Node label is: ', u'NNS')
- ('context: ', [])
- [[]]
- Done!
- 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.
- 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.
- 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.
- 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.
- 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.
- {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement