6
$\begingroup$

I want to count a number of nouns in a sentence. For that, I'm using TextStructere but I don't know how to get tags of each word.

$\endgroup$

1 Answer 1

8
$\begingroup$
Length @ TextCases[
  "The quick brown fox jumps over the lazy dog."
, "Noun"
]

2

$\endgroup$
1
  • $\begingroup$ thanks a lot for your help $\endgroup$ Apr 29, 2018 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.