LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How many times a word appears in a text?

Solved!
Go to solution

The tricky part is unambiguously defining what a word is.  Suppose you encounter " Page-2 "; is that:

  • One word "Page-2"
  • Two words "Page" and "2"
  • One word "Page", with both the "-", and "2" considered delimiters.
"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 11 of 13
(294 Views)

You might want special treatment for "-" followed by linefeed, because it might split a word (not implemented).

 

In any case, here's the MAP version. See if it makes sense.

 

altenbach_0-1647275220823.png

 

0 Kudos
Message 12 of 13
(290 Views)

Thank you! It looks like I was doing too much when a simpler answer was available.

0 Kudos
Message 13 of 13
(250 Views)