5
$\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$
7
$\begingroup$
Length @ TextCases[
  "The quick brown fox jumps over the lazy dog."
, "Noun"
]

2

$\endgroup$
  • $\begingroup$ thanks a lot for your help $\endgroup$ – Kiril Danilchenko Apr 29 '18 at 19:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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