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]); } }
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)); }