Creates and loads the topmost nodes hash from WordNet.
returns: $topHash, a reference to a hash containing the topmost nodes of the noun and verb hierarchies in WordNet.
|updateWordFrequency ($word, $offsetFreq, $wn [, $opt_resnik])||
Updates the counts of a given word in a given offset-frequency hash. It
finds the offsets of all concepts corresponding to the given word in
WordNet, and increments the frequency counts of these in the hash.
|propagateFrequency ($offsetFreq, $wn, $topHash)||
This function propagates the frequencies up the is-a hierarchies in
WordNet, and return a hash with the new frequency counts.
returns: $newFreq, hash containing updated counts.
Ted Pedersen, University of Minnesota Duluth tpederse at d.umn.edu Siddharth Patwardhan, University of Utah, Salt Lake City sidd at cs.utah.edu
To submit a bug report, go to http://groups.yahoo.com/group/wn-similarity or send e-mail to tpederse at d.umn.edu.
Copyright (c) 2008, Ted Pedersen and Siddharth Patwardhan
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to
The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Note: a copy of the GNU General Public License is available on the web at <http://www.gnu.org/licenses/gpl.txt> and is included in this distribution as GPL.txt.
|perl v5.20.3||WORDNET::SIMILARITY::FREQUENCYCOUNTER (3)||2008-05-30|