You've done the pseudocode plan, so go the whole hog and write the thing!
Use the "match pattern" function to find a full stop, then from there scan
the string character by character till you find a non-whitespace char, then
see if it's a capital- both using the "lexical class" function. Then find
the next full stop, and your sentence is the text between the first
character found (not the first full stop) and the last char before the full
stop. I'd be inclined to bung that into an array of sentences for easy
playing with further down the line. Bung the thing in a while loop, with a
shift register to hold a character pointer for the "match pattern" function,
and set the conditional to true if the output pointer from the match pattern
is greater or equal to zero. You
'll need a little extra thought to deal with
the first and last sentence.
Trivial, and less time consuming than messing about with web searches and
Usenet.
Timo Ruonala wrote in message
news:392FD689.6CFEE42D@netscape.net...
> Hi all!
> Does anyone know if there is a sentense separation tool for labview?
> It should be able to work much like this:
> 1) reads a text file (foo1.txt)
> 2) checks weather a capital letter is located after a delimiter (dot,
> new line, tab)
> 3) reads a string till next dot
> 4) checks weather the next dot is followed by a capital letter
> 5) if it is --> 7)
> 6) if not --> reads a sentence-string till next dot is is followed by a
> capital letter -->7
> 7) extracts all complete sentence-strings into their own lines in an
> another text file (foo2.txt )
>
>
> If that aid-tool is somewhere in the internet, it seems to be well
> hidden 🙂
>
> Regards: Timo Ruonala
>
>
>