Tagging Sentences????


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Tagging Sentences????

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    13

    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.

  2. #2
    Join Date
    Feb 2006
    Posts
    13
    Please let me know if you dont understand what I have said

  3. #3
    Join Date
    Jul 2005
    Location
    the Netherlands
    Posts
    128
    Quote Originally Posted by Game
    Please let me know if you dont understand what I have said
    I answered you at the Sun forum.

  4. #4
    Join Date
    Feb 2006
    Posts
    13
    Ya Thank You, very much, it worked like a charm.

  5. #5
    Join Date
    Jul 2005
    Location
    the Netherlands
    Posts
    128
    Quote Originally Posted by Game
    Ya Thank You, very much, it worked like a charm.
    Good too hear that.
    You're welcome.

  6. #6
    Join Date
    Feb 2006
    Posts
    13
    What's so special about the number of posts displayed with every user...

Similar Threads

  1. Url Tagging
    By xiaozozo in forum ASP.NET
    Replies: 2
    Last Post: 08-22-2005, 03:26 PM
  2. 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center