Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Tagging Sentences??

Hi,
I am trying to tag the text sentences using the following method:

1. Convert a string into Tokens:
StringTokenizer firstSentTokenizer = new StringTokenizer(firstSent,"-.,\" ",true);

2. Add the tokens into a vector.
tokenVector.addElement(firstSentTokenizer.nextToke n());

3. Create the list of tokens:
List listOffSentTokens = tokenVector.subList(0,tokenVector.size());

4. Tag the sentences(for eg: noun, verb, proverb etc.):
String[] taggedTokens = tag.tag(listOffSentTokens);
{this method tag is from other package and it is the method described as follows, public String[] tag(List tokenList); http://www.english.bham.ac.uk/staff/omason/software/qtag-api.html}

Now I have each token of the sentence tagged, what I want to do is access only those elements in the vector(i.e., tokenVector) which I am interested in. and ignore others. How can I do that? Any Help... please. :confused:
[958 byte] By [Game] at [2007-11-11 8:12:21]
# 1 Re: Tagging Sentences??
Please let me know if you dont understand what I have said
Game at 2007-11-11 22:36:06 >
# 2 Re: Tagging Sentences??
Please let me know if you dont understand what I have said

I answered you at the Sun forum.
prometheuzz at 2007-11-11 22:37:11 >
# 3 Re: Tagging Sentences??
Ya Thank You, very much, it worked like a charm.
Game at 2007-11-11 22:38:10 >
# 4 Re: Tagging Sentences??
Ya Thank You, very much, it worked like a charm.

Good too hear that.
You're welcome.
prometheuzz at 2007-11-11 22:39:15 >
# 5 Re: Tagging Sentences??
What's so special about the number of posts displayed with every user...
Game at 2007-11-11 22:40:08 >
# 6 Re: Tagging Sentences??
What's so special about the number of posts displayed with every user...

What do you mean?
prometheuzz at 2007-11-11 22:41:18 >