Ejemplo n.º 1
0
 string ExtractSingleFeature(int wordId, int field)
 {
     if (TokenInfoBuffer.isPartOfSpeechFeature(field))
     {
         var featureId = TokenInfoBuffer.LookupPartOfSpeechFeature(wordId, field);
         return(PosValues[featureId]);
     }
     else
     {
         var featureId = TokenInfoBuffer.LookupFeature(wordId, field);
         return(StringValues[featureId]);
     }
 }
Ejemplo n.º 2
0
        private string ExtractSingleFeature(int wordId, int field)
        {
            int featureId;

            if (tokenInfoBuffer.IsPartOfSpeechFeature(field))
            {
                featureId = tokenInfoBuffer.LookupPartOfSpeechFeature(wordId, field);
                return(posValues.Get(featureId));
            }

            featureId = tokenInfoBuffer.LookupFeature(wordId, field);
            return(stringValues.Get(featureId));
        }