We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The Problem really should explain what tags are expected. I googled "Pen Tree Tagset" and found the "Penn Treebank Tagset", but the tags don't match. E.g., according to the site I found, "VBN" is only for verbs that are a variation of "be", which "caught" most certainly is not.
Agreed. My submissions would not pass until I tried using the past participle tag, which felt quite wrong. But it worked. Probably because the problem statement says "The missing tags will be restricted to the set of tags which you already see in the POS tagged version of this sentence.", but as there is no occurence of a tagged past tense verb in the sentence, only of a tagged past participle, then we were supposed to use it as the grammatically "closest" form.
Never used it. It might work, as it is connected to several lexical resources. But it is not the purpose of the exercise, which is to understand tagging concepts.
so how are people expected to solve these questions if not through nltk, I just write the python code to get a string and paste it as plain text, is that not how i am supposed to be solving the question?
No more comments
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Join us
Create a HackerRank account
Be part of a 26 million-strong community of developers
Please signup or login in order to view this challenge
The Problem really should explain what tags are expected. I googled "Pen Tree Tagset" and found the "Penn Treebank Tagset", but the tags don't match. E.g., according to the site I found, "VBN" is only for verbs that are a variation of "be", which "caught" most certainly is not.
The/DT planet/NN Jupiter/NNP and/CC its/PPS moons/NNS are/VBP in/IN effect/NN a/DT minisolar/JJ system/NN ,/, and/CC Jupiter/NNP itself/PRP is/VBZ often/RB called/VBN a/DT star/NN that/IN never/RB caught/VBD fire/NN ./. Using Stanford CoreNLP.But solution is not being accepted why?
Seems to me like "caught" is a past tense not a past participle. It would be a past participle if for example it was used as "has caught".
Agreed. My submissions would not pass until I tried using the past participle tag, which felt quite wrong. But it worked. Probably because the problem statement says "The missing tags will be restricted to the set of tags which you already see in the POS tagged version of this sentence.", but as there is no occurence of a tagged past tense verb in the sentence, only of a tagged past participle, then we were supposed to use it as the grammatically "closest" form.
phew...your comment saved me..god bless you saviour!
My solution is not being accepted. Verified that it is correct using the Stanford Parser.
My solution too.
Mine works. I use this way to solve it: system/?? is the same grammar-type of planet/NN(it is a Noun) so it probably will have "/NN" too. And so on...
Use Penn Treebank POS tags!
can I use nltk for this challenge?
Never used it. It might work, as it is connected to several lexical resources. But it is not the purpose of the exercise, which is to understand tagging concepts.
so how are people expected to solve these questions if not through nltk, I just write the python code to get a string and paste it as plain text, is that not how i am supposed to be solving the question?