Ted Pedersen > WordNet-SenseRelate-AllWords > scorer2-sort.pl

Download:
WordNet-SenseRelate-AllWords-0.19.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

scorer2-sort.pl - sort scorer2 formatted files column by column

SYNOPSIS ^

 scorer2-sort.pl FILE

DESCRIPTION ^

This script is used for sorting scorer2 formatted files column by column. At first, the words before '.' are sorted. In the case where 2 words are same, they are sorted on their tag, i.e on the string after '.'. For example for the entries below,

action.n 238 1

act.v 75 1

add.v 275 2

act.n 630 1

The sorted entries would be

act.n 630 1

act.v 75 1

action.n 238 1

add.v 275 2

Observe that the words before . are sorted first and hence 'act' appears before 'action'. Moreover, note that 'act.n' appears before 'act.v' as the words are same and n < v.

AUTHORS ^

 Varada Kolhatkar, University of Minnesota, Duluth
 kolha002 at d.umn.edu

 Ted Pedersen, University of Minnesota, Duluth
 tpederse at d.umn.edu

This document last modified by : $Id: scorer2-sort.pl,v 1.8 2009/02/13 14:49:56 kvarada Exp $

SEE ALSO ^

 L<semcor-reformat.pl> L<wsd-experiments.pl> L<scorer2-format.pl> L<allwords-scorer2.pl>

COPYRIGHT AND LICENSE ^

Copyright (c) 2009, Varada Kolhatkar, Ted Pedersen, Jason Michelizzi

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.

Note: a copy of the GNU Free Documentation License is available on the web at http://www.gnu.org/copyleft/fdl.html and is included in this distribution as FDL.txt.

syntax highlighting: