Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8888011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:56:41+00:00 2026-06-14T21:56:41+00:00

Is there a method in NLTK to be able to find certain adjective attributes

  • 0

Is there a method in NLTK to be able to find certain adjective attributes that describe the word? For example, if I typed in the word “Skyscraper”, attributes such as ‘tall’, ‘structured’, etc. would appear. I’m more so interested in the reverse, where if I type in the word ‘tall’ then it will list the semantic relations with other words.

I believe the attribute method on NLTK is meant for this, but it doesn’t work particularly the way I described above and this is the code that I’m using for it:

from nltk.corpus import wordnet as wn
synsets = wn.synsets('skyscraper')
print[str(syns.attributes()) for syns in synsets]

I’ve tried using the part_meronyms and attributes methods, but this doesn’t always result the adjective attributes of a word. I know of other Python tools that would allow me to do this, but I would prefer to use only NLTK as of now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:56:43+00:00Added an answer on June 14, 2026 at 9:56 pm

    Using purely NLTK, you can achieve this as a two-step process, with your own functions.

    Basic Idea

    • Step 1. Find all meaningful collocations for your target word (“skyscraper” or “tall”)
    • Step 2. For the adjectives identified in those collocations that are of interest to you, parse the POS to get the semantic relations.

    For Step 1. this SO question on Scoring bigrams has defs that are very relevant. You’ll have to tweak the BigramAssocMeasures to your problem. (It uses the brown corpus, but you can use many others.)

    For Step 2. you could use something like pos_tag() or even Tree.parse() to get the associations that you are looking for to your target adjective.

    For a (simpler) and alternative approach, this link has examples of text.similar() that should be relevant.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a method to verify if a NSString haven't characters? example of string
is there a method to link specific files so that I can reference them
Is there builtin method that would do this or do I always have to
Is there a method that could tell for a string like foo bar Foo
Is there some method in ICollection in C# that would add all elements of
Is there a method of accessing an Exchange server that does not have IMAP
Is there a method built in to NSString that tokenizes the string and searches
Is there a method in Criteria that will print the actual MongoDB query that
Is there a method in which I can iterate through all objects that exist
Is there a method of aligning tick labels? I have a figure that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.