wordnet

How to use word Net with php

假装没事ソ 提交于 2019-11-30 05:21:34
问题 how to use word Net with php is there is any interface or any class for it..... i need to use wordnet for my dictionary purpose.... 回答1: On the download page there's a download available with a command line tool. You could use this from php if you have exec enabled. http://wordnet.princeton.edu/wordnet/download/ 回答2: This page links to this PHP API for WordNet. 回答3: yea I can't get it work - I have Windows though, looks to be UNIX favored - you also must download the old version of Wordnet.

Generating the plural form of a noun

為{幸葍}努か 提交于 2019-11-30 03:59:21
问题 Given a word, which may or may not be a singular-form noun, how would you generate its plural form? Based on this NLTK tutorial and this informal list on pluralization rules, I wrote this simple function: def plural(word): """ Converts a word to its plural form. """ if word in c.PLURALE_TANTUMS: # defective nouns, fish, deer, etc return word elif word in c.IRREGULAR_NOUNS: # foot->feet, person->people, etc return c.IRREGULAR_NOUNS[word] elif word.endswith('fe'): # wolf -> wolves return word[:

using python nltk to find similarity between two web pages?

僤鯓⒐⒋嵵緔 提交于 2019-11-30 00:56:18
I want to find whether two web pages are similar or not. Can someone suggest if python nltk with wordnet similarity functions helpful and how? What is the best similarity function to be used in this case? The spotsigs paper mentioned by joyceschan addresses content duplication detection and it contains plenty of food for thought. If you are looking for a quick comparison of key terms, nltk standard functions might suffice. With nltk you can pull synonyms of your terms by looking up the synsets contained by WordNet >>> from nltk.corpus import wordnet >>> wordnet.synsets('donation') [Synset(

Wordnet SQL Explanation

耗尽温柔 提交于 2019-11-29 21:07:40
I'm trying to get a simple synonym database up and running, so I can find synonyms of words the user entered (nothing else!). For this I grabbed a copy of the Wordnet sql thesarus ( http://wnsql.sourceforge.net/ ), but now I'm presented with all these tables, and I can't find any simple explanation for their content anywhere: adjpositions adjpositiontypes casedwords lexdomains lexlinks linktypes morphmaps morphs postypes samples semlinks senses synsets vframemaps vframes vframesentencemaps vframesentences words Could someone tell me what these tables contain and which I need, since I cant

Wordnet Find Synonyms

杀马特。学长 韩版系。学妹 提交于 2019-11-29 20:42:21
I am searching for a way to find all the synonyms of a particular word using wordnet. I am using JAWS. For example: love(v): admire, adulate, be attached to, be captivated by, be crazy about, be enamored of, be enchanted by, be fascinated with, be fond of, be in love with, canonize, care for, cherish, choose, deify, delight in, dote on, esteem, exalt, fall for, fancy, glorify, go for, gone on.... love(n): Synonym : adulation, affection, allegiance, amity, amorousness, amour, appreciation, ardency, ardor, attachment, case*, cherishing, crush, delight, devotedness, devotion, emotion, enchantment

How to get domain of words using WordNet in Python?

跟風遠走 提交于 2019-11-29 18:36:39
问题 How can I find domain of words using nltk Python module and WordNet? Suppose I have words like (transaction, Demand Draft, cheque, passbook) and the domain for all these words is "BANK". How can we get this using nltk and WordNet in Python? I am trying through hypernym and hyponym relationship: For example: from nltk.corpus import wordnet as wn sports = wn.synset('sport.n.01') sports.hyponyms() [Synset('judo.n.01'), Synset('athletic_game.n.01'), Synset('spectator_sport.n.01'), Synset('contact

Choosing appropriate sense of a word from wordnet

白昼怎懂夜的黑 提交于 2019-11-29 14:41:16
问题 I am using Wordnet for finding synonyms of ontology concepts. How can i find choose the appropriate sense for my ontology concept. e.g there is an ontlogy concept "conference" it has following synsets in wordnet The noun conference has 3 senses (first 3 from tagged texts) (12) conference -- (a prearranged meeting for consultation or exchange of information or discussion (especially one with a formal agenda)) (2) league, conference -- (an association of sports teams that organizes matches for

How does spacy lemmatizer works?

主宰稳场 提交于 2019-11-29 13:35:54
问题 For lemmatization spacy has a lists of words: adjectives, adverbs, verbs... and also lists for exceptions: adverbs_irreg... for the regular ones there is a set of rules Let's take as example the word "wider" As it is an adjective the rule for lemmatization should be take from this list: ADJECTIVE_RULES = [ ["er", ""], ["est", ""], ["er", "e"], ["est", "e"] ] As I understand the process will be like this: 1) Get the POS tag of the word to know whether it is a noun, a verb... 2) If the word is

Import WordNet In NLTK

依然范特西╮ 提交于 2019-11-29 13:09:36
问题 I want to import wordnet dictionary but when i import Dictionary form wordnet i see this error : for l in open(WNSEARCHDIR+'/lexnames').readlines(): IOError: [Errno 2] No such file or directory: 'C:\\Program Files\\WordNet\\2.0\\dict/lexnames' I install wordnet2.1 in this directory but i cant import please help me to solve this problem import nltk from nltk import * from nltk.corpus import wordnet from wordnet import Dictionary print '-----------------------------------------' print

Installing nltk data dependencies in setup.py script

耗尽温柔 提交于 2019-11-29 06:14:40
I use NLTK with wordnet in my project. I did the installation manually on my PC, with pip: pip3 install nltk --user in a terminal, then nltk.download() in a python shell to download wordnet. I want to automatize these with a setup.py file, but I don't know a good way to install wordnet. For the moment, I have this piece of code after the call to setup ( "nltk" is in the install_requires list of the call to setup ): import sys if 'install' in sys.argv: import nltk nltk.download("wordnet") Is there a better way to do this? asmaier I managed to install the NLTK data in setup.py by overriding