-
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.
-
Please let me know if you dont understand what I have said
-
 Originally Posted by Game
Please let me know if you dont understand what I have said
I answered you at the Sun forum.
-
Ya Thank You, very much, it worked like a charm.
-
 Originally Posted by Game
Ya Thank You, very much, it worked like a charm.
Good too hear that.
You're welcome.
-
What's so special about the number of posts displayed with every user...
-
 Originally Posted by Game
What's so special about the number of posts displayed with every user...
What do you mean?
Similar Threads
-
By xiaozozo in forum ASP.NET
Replies: 2
Last Post: 08-22-2005, 03:26 PM
-
By Nando in forum VB Classic
Replies: 1
Last Post: 10-27-2002, 05:01 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks