⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classify.1

📁 speech signal process tools
💻 1
字号:
.\" @(#)classify.1	1.1 (EPI) 6/5/87.TH CLASSIFY 1\-ESPS 6/5/87.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEclassify \- maximum-likelihood classification of feature records.SH SYNOPSIS.B classify[.BI \-x " debug_level"] [.BI \-f " field"] [.BI \-e " elements"] [.BI \-d] [.BI \-C " field"] [.BI \-L " field"].br[.BI \-h " file.his"].I " input.stat".I " input.fea".I " output.fea".SH DESCRIPTION.PP.I Classifytakes as inputs an ESPS feature file of any subtypeand an ESPS statistics (FEA_STAT(5\-ESPS)) filecontaining mean vectors and inverse covariance matrices.It writes an output feature file of the same subtype as the inputfeature file.If ``\-'' is given for.I input.fea,the standard input is used.If ``\-'' is given for.I input.stat,the standard input is used,but the input files must not both be the standard input.If ``\-'' is given for.I output.fea,the standard output is used..PP.I Classifyclassifies each record of the input feature file into one of severalclasses on the basis of information in the statistics file.The possible classes are those named in the.I classfield in the records in the statistics file.Since that is a coded field, the class names actually refer tostrings in the.I enumsarray for the field.I classin the statistics-file header,but there need not be a statistics record for every such string.There must not be more than one record for any one class..PPClassification is by maximum likelihood.To classify a record, the program computes a likelihood for eachclass by a method to be described.The record is assigned to the class for which the likelihood is greatest..PPThe output file is a copy of the input feature filewith two additional fields in each record.One is a coded fieldthat identifies the class to which the record is assigned.The other is a vector field that contains the likelihoods.These occur in the same order as the corresponding class names in the.I enumsarray for the new coded field.The likelihoods are normalized so that their sum is 1 for each record;they may thus be viewed as posterior class probabilities for a priordistribution that (at present) is implicitly taken to be uniform..PPTo compute the likelihood,given a feature record and a statistics record,.I classifyfirst assembles a vector consisting of values of certain elements offields in the feature record.The length of this ``feature vector'' must match the generic header item.I statsizein the statistics-file header.The inverse covariance matrix and the mean vector in the statistics recorddefine a multivariate Gaussian probability density;the desired likelihood is the value of the densityat the point given by the feature vector..PPIn the simplest case, the elements of the feature vectorare simply all the elements of the field named by the generic header item.I statfieldin the statistics-file header;however, the field name may be overridden by the.B \-foption, and a subset of the elements may be selected by the.B \-eoption..PPIf.I statfielddoes not name a field in the input feature file,and neither.B \-fnor.B \-eis selected,then the elements of the feature vector are chosenwith the help of the derived-field mechanism explained in FEA(5\-ESPS).In that case.I statfieldmust name a field that is flagged as.I derivedin the reference header of the statistics-file header,and the field elements specified in the corresponding.I srcfieldsentry must exist in the input feature file;those field elements then become the elements of the feature vector.The.B \-doption forces use of the derived-field mechanism even when thecontents of.I statfieldcoincide with the name of a field in the input statistics file..SH "ESPS PARAMETERS".PPThis program does not read the parameter file or the common file..SH "ESPS HEADERS".PPThe output header is an altered copy of the input feature-file headermade with.IR copy_header (3\-ESPS).New values are filled in for.I common.prog,.I common.vers,and.I common.date.The command line is added to the comment field.The two input files are made the source files of the output.Two new fields are added with.IR add_fea_field (3-\ESPS).The following items in the statistics-file header are accessed:.I common.type,.I common.tag,.I hd.fea\->fea_type,the generic header items.I statsizeand.I statfield,all items consulted by.IR allo_feastat_rec (3\-EPSP)and.IR get_feastat_rec (3\-ESPS),and, in case the derived-field mechanism is used,.I variable.refhd.In that case the following fields of the reference header are accessed:.I hd.fea\->names,.I hd.fea\->derived,and.I hd.fea\->srcfields..SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug_level"If.I debug_levelis positive,.I classifyprints debugging messages and other information on the standard erroroutput.  The messages proliferate as the .I debug_levelincreases.  If.I debug_levelis 0, no messages are printed.  The default is 0.  .TP.BI \-f " field"The specified field must exits in.I input.fea.The elements of the feature vector for each input record are drawnfrom this field instead of the field named in the generic header item.I statfieldin.I input.stat.This option may not be used if.B \-dis used..TP.BI \-e " elements"The argument is in the form expected by.I grange_switch(3\-ESPS)and specifies the set of field elements that are to comprise the featurevector for each input record.The field from which the elements are selected is that specified with the.B \-foption, if any; if.B \-fis not used, then the field is that named in the generic header item.I statfieldin.I input.stat.This option may not be used if.B \-dis used..TP.B \-dForces the use of the derived-field mechanism of feature files even when.I statfieldin the statistics-file header is the name of a field in the input featurefile.  (See the Description section for more detail.)  This option may notbe used if.B \-eor.B \-fis used..TP.BI \-C " field"Specifies the name of the field in the output feature file that is tocontain the classification result for each record.  Default is.I class.The program exits with an error message if the fieldis already present in the input feature file..TP.BI \-L " field"Specifies the name of the field in the output feature file that is tocontain the vector of normalized likelihood values.  Default is.I posteriors.The program exits with an error message if the fieldis already present in the input feature file..TP.BI \-h " file.his"Place various intermediate results in the ASCII history file.I file.his.At the end place summary statistics such as the total number ofrecords classified, number of records in each class, and fraction ofrecords in each class..SH "FUTURE CHANGES".PPOption to input prior probabilities for the classes and performmaximum-posterior-probability classification..PPFix the problem mentioned under Bugs..SH EXAMPLESuppose you want to classify speech analysis framesas ``voiced'', ``unvoiced'', or ``silent''on the basis of raw powerand (for some reason) reflection coefficients number 2, 4, 5, and 6.Obtain 3 fea_ana(5\-ESPS) files, say.I voi.fana,.I unv.fana,and.I sil.fana,containing training sequences of voiced, unvoiced, and silent frames.Also prepare an Ascii file,.I fields,containing the lines.nf.IPfield = svectorraw_power[0]spec_param[1,3:5].fi.PPor substitute a name of your choice for.I svector..PPExecute the command.IPfeaderiv fields voi.fana voi.fea.PPThis will create a feature file.I voi.feahaving a single vector field.I svectorof length 5.In each record of.I voi.feathe contents of.I svectorwill consist of the contents of.I raw_power,.IR spec_param [1],.IR spec_param [3],.IR spec_param [4],and.IR spec_param [5]in the corresponding record of.I voi.fana.In the header of.I voi.fea,the element of.IR hd.fea \-> derivedcorresponding to "svector" in.IR hd.fea \-> nameswill have the value YES,and the corresponding element of.IR hd.fea \-> srcfieldswill contain the strings "raw_power" and "spec_param[1,3:5]".Likewise execute.nf.IPfeaderiv fields unv.fana unv.feafeaderiv fields sil.fana sil.fea.fi.PPto create files.I unv.feaand.I sil.fea..PPExecute.nf.IPfea_stats -I -f svector -n VOICED voi.fea clas.statfea_stats -I -f svector -n UNVOICED unv.fea clas.statfea_stats -I -f svector -n SILENCE sil.fea clas.stat.fi.PPto create a fea_stat(5\-ESPS) file.I clas.statand append 3 records, each containing a mean vector, an inversecovariance matrix, and a value for the coded field.I class.The.I classvalues in the 3 fields will be "VOICED", "UNVOICED", and "SILENCE".The generic header items.I statfieldand.I statsizewill contain "svector" and 5..PPNow, given a fea_ana file.I test.fanaof records to be classified, use.IPclassify clas.stat test.fana result.fana.PPto create a fea_ana file.I result.fanaof classification results.This will be a copy of.I test.fanawith a coded field.I classindicating "VOICED", "UNVOICED", or "SILENCE" for each frame,and a 3-element vector field.I posteriorsgiving the normalized likelihoods for the 3 voicing classes for each record..PPThe order of the likelihoods may or may not be``voiced'', ``unvoiced'', ``silence''.To find out, use.IPpsps -x -v result.fana.PPto determine the order of the strings "VOICED", "UNVOICED", and "SILENCE"in the field definition for.I class..SH "SEE ALSO".PPfea_deriv(1\-ESPS), fea_stats(1\-ESPS), classify(3\-ESPS),get_deriv_vec(3\-ESPS), FEA(5\-ESPS), FEA_STAT(5\-ESPS).SH DIAGNOSTICS.PP.nfclassify: unknown option \-\fIletter\fPUsage: classify .\ .\ .\ .classify: can't open \fIfilename\fP: \fIreason\fPclassify: \fIfilename\fP is not an ESPS fileclassify: \fIfilename\fP is not an ESPS feature fileclassify: \fIfilename\fP is not an ESPS fea_stat fileclassify: \-f and \-e are incompatible with \-dclassify: \fIfield\fP is not a derived fieldclassify: feature-vector length inconsistent with statsize in stat file.fi.SH BUGS.PPThe correspondence between class names and elements of the vectors oflikelihoods can be scrambled by programs like.IR fea_edit (1\-ESPS)and.IR select (1\-ESPS),which can alter headers or copy records from one file into anotherwith a different header..SH REFERENCES.PP.SH AUTHORRodney W. Johnson

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -