04 Oct 2015 16:19:03 UTC
- Distribution: WordNet-Similarity
- Module version: 2.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (6)
- Testers (15 / 8 / 0)
- KwaliteeBus factor: 0
- License: open_source
- Download (5.5MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:4 non-PAUSE users
- Ted Pedersen, Siddharth Patwardhan, Satanjeev Banerjee, Jason Michelizzi
WordNet::Tools - Some tools for use with WordNet.
use WordNet::QueryData; use WordNet::Tools; my $wn = WordNet::QueryData->new; my $wntools = WordNet::Tools->new($wn); my $wnHashCode = $wntools->hashCode(); my $newstring = $wntools->compoundify("find compound words like new york city in this text");
This module provides some tools for use with WordNet. For example, the 'compoundify' method detects compound words (as found in WordNet) in a text string and it combines these words into single tokens using underscore separators. Another tool in this module generates a unique hash code corresponding to a WordNet distribution. This hash code is meant to replace the "version" information in WordNet, which is no longer reliable.
The following methods are defined:
This is a constructor for this class (and creates a new object of this class). It requires a WordNet::QueryData object as a parameter.
Parameters: $wn -- a WordNet::QueryData object.
Returns: a new WordNet::Tools object.
This is method identifies all compound words occurring in the given input string. Compound words are multi-word tokens appearing in WordNet.
Parameters: $string -- an input text string.
Returns: a string with compound words identified.
This method returns the list of compound words present in WordNet.
Returns: reference to an array of compounds.
This is method returns a unique identifier representing a specific distribution of WordNet.
Returns: a unique identifier (string).
None by default.
Ted Pedersen, University of Minnesota, Duluth tpederse at d.umn.edu Siddharth Patwardhan, University of Utah, Salt Lake City sidd at cs.utah.edu
Copyright (c) 2005, 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.
Module Install Instructions
To install WordNet::Similarity, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install WordNet::Similarity
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|