Como usar o OpenNLP para obter tags POS no R?

Aqui está o código R:

library(NLP) 
library(openNLP)
tagPOS <-  function(x, ...) {
s <- as.String(x)
word_token_annotator <- Maxent_Word_Token_Annotator()
a2 <- Annotation(1L, "sentence", 1L, nchar(s))
a2 <- annotate(s, word_token_annotator, a2)
a3 <- annotate(s, Maxent_POS_Tag_Annotator(), a2)
a3w <- a3[a3$type == "word"]
POStags <- unlist(lapply(a3w$features, `[[`, "POS"))
POStagged <- paste(sprintf("%s/%s", s[a3w], POStags), collapse = " ")
list(POStagged = POStagged, POStags = POStags)}
str <- "this is a the first sentence."
tagged_str <-  tagPOS(str)

A saída é:

tagged_str $ POStagged [1] "este / DT é / VBZ a / DT o / DT primeiro / sentença JJ / NN ./."

Agora eu quero extrair apenas a palavra NN, ou seja, a frase da frase acima e quero armazená-la em uma variável. Alguém pode me ajudar com isso.

questionAnswers(3)

yourAnswerToTheQuestion