You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For single word sentences, ZPar tagging is not always consistent. For example, given the following input file:
REBELLION
I am going away .
The rebellion is just another word for change and change is necessary to live .
REBELLION
REBELLION
The rebellion is just another word for change and change is necessary to live .
REBELLION
This is just another sentence .
REBELLION
Looks like the issue is underflow. In tagger.cpp, we check whether there are 2 words between the current word and the end of the sentence but we never check whether the sentence actually has more than 2 words. For a single word sentence, i.e., where m_CacheSize is 1, m_CacheSize-2 will underflow and become a large positive number. And, therefore, the condition will be satisfied when it shouldn't be.
For single word sentences, ZPar tagging is not always consistent. For example, given the following input file:
I get the following tagger output:
As you can see, the word
REBELLION
is tagged asNN
,NNP
andIN
all in the same text. This is obviously inconsistent.The text was updated successfully, but these errors were encountered: