man.diff

来自「speech signal process tools」· DIFF 代码 · 共 197 行

DIFF
197
字号
.\" Copyright (c) 1989-1990 Entropic Speech, Inc..\" Copyright (c) 1992 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)mergefea.1	1.11 03 Apr 1997 ESI/ERL.ds ]W (c) 1992 Entropic Research Laboratory, Inc..TH MERGEFEA 1\-ESPS 03 Apr 1997.SH "NAME"mergefea - merge two FEA files so that output records contain fields from both.SH "SYNOPSIS".B mergefea[.BI \-f " field_name"] . . . [.B \-t] [.B \-u] [.B \-a] [.BI \-x " debug_level"] [.B \-z] [.BI \-T " FEA_subtype"] .I "fea1 fea2"[.I "fea3"].SH "DESCRIPTION".PPIf \fIfea1\fP and \fIfea2\fP both exist, \fImergefea\fR merges theirrecords in the sense that the fields in each output record comprisethe union of fields in two input records.  The results of the merge can be written to a third file \fIfea3\fP, or \fIfea2\fP can be rewritten to contain the merged results (think of this as merging\fIfea1\fP into \fIfea2\fP).  The \fB\-f\fP option can be used to restrict which fields are taken from the \fIfea1\fP records.  If \fIfea2\fP doesn't exist, it is created and contains onlythe selected fields from \fIfea1\fP (thus, \fImergefea\fP can beused to filter fields out of FEA files). .PPIf both input files exist, then each record of the output contains allof the fields from the corresponding \fIfea2\fP record and the selectedfields from the corresponding \fIfea1\fP record (all of them unlessthe \fB\-f\fP option is used).  None of the selected fields from\fIfea1\fP may have the same name as a field in  \fIfea2\fP.  The sizeof the output file is determined by the size of \fIfea2\fP \- they havethe same number of records.  If \fIfea1\fP has more records than\fIfea2\fP, then the additional records are ignored.  If \fIfea1\fP hasfewer records than \fIfea2\fP, then the field values in the last recordof \fIfea1\fP are duplicated for merging with the additional \fIfea2\fPrecords.  If \fIfea3\fP is supplied, then the output is written to\fIfea3\fP, and the original contents of \fIfea2\fP are left unchanged.If \fIfea3\fP is not supplied, then the contents of the output filereplace the previous contents of \fIfea2\fP.  That is, \fImergefea\fPrewrites \fIfea2\fP with additional fields in each record..PPIf \fIfea2\fP  does not exist, it is created as an output file,and \fIfea3\fP must not be supplied..PPGeneric header items are copied from input to output.  If \fIfea1\fPand \fIfea2\fP contain header items with the same name, the value in\fIfea2\fP prevails.  This behavior can be changed by using the\fB\-u\fP option, which causes all generics from \fIfea1\fP to be copied;unique new names are generated if generics by the same name already existin \fIfea2\fP).  .PPIf \fIfea1\fP is "\-", standard input is used.  If \fIfea3\fP is notsupplied and \fIfea2\fP is "\-", standard output is used (in thiscase, \fImergefea\fP is just a field filter).  If \fIfea3\fP issupplied and \fIfea2\fP is "\-", standard input is used,but \fIfea1\fP and \fIfea2\fP may not both be standard input.If \fIfea3\fP is "\-", standard output is used..SH OPTIONS.PPThe following options are supported:.TP.BI \-f " field_name" Specifies a field name to be taken from \fIfea1\fP.  If no \fB\-f\fPoption is given, all fields are taken.  This option may be given morethan once..TP.B \-tThis option makes the output file a tagged file andcauses record \fItag\fR values to be copied from \fIfea1\fPto the output file, along with the specified feature fields.If the option is not specified, then the output file is taggedif and only if \fIfea2\fP exists and is tagged, and the \fItag\fPvalues, if any, are copied from \fIfea2\fP..TP.B \-uIf generic header items in \fIfea1\fP have names that exist alreadyas generics in \fIfea2\fP, this option causes those items in \fIfea1\fPto be copied with unique new names generated by the use of\fIcopy_genhd_uniq\fP (3\-\s-1ESPS\s+1).  Numerical digits are appendedto the generic header item names in order to render them unique (see\fIuniq_name\fP (3\-\s-1ESPS\s+1))..TP.B \-aIf the selected fields in \fIfea1\fP and all fields in \fIfea2\fP havenon-conflicting names, and if both \fIfea1\fP and \fIfea2\fP have thegeneric header items \fIrecord_freq\fR and \fIstart_time\fR defined, then this option can be used to merge the files in a time-aligned manner.The output file \fIfea3\fP has the same record frequency \fIrecord_freq\fRas \fIfea2\fP, and it consists of records that correspond to the timeintersection of the two input files.  In case that input record frequenciesdiffer, a zero-th order (or nearest-neighbor) interpolation scheme is performed on records of \fIfea1\fP..TP.BI \-x " debug_level \fR[0]\fP"If \fIdebug_level\fP is positive,.I mergefeaoutputs debugging messages. The messages proliferate as .I debug_level increases.  For level 0, there is no output..TP.B \-zSuppress the warning that is normally printed if \fIrecord_freq\fPis defined with different values in the two input files..TP.BI \-T " FEA_subtype \fR[(same as \fIfea2\fR)]"If this option is given, the feature file subtype code in the output fileis filled in with the given code.The symbolic name of the subtype code must be given,for example FEA_ANA or FEA_SD (or NONE).For a complete list of defined subtype codes, see FEA(5\-ESPS).Use of this option doesn't ensurethat the file has the correct format for the specified subtype.You should use this option only when you knows that a filewith the correct fields and generic header items will be produced.See the section 5 manual pages for the defined feature file types..SH "ESPS PARAMETERS".PPNo parameter file is used by \fImergefea\fP.  .SH "ESPS COMMON".PPESPS Common is not read or written by \fImergefea\fP.  .SH ESPS HEADERS.PPThe generic header items from both input files are added as genericheader items to the output file.  If generic header items with the samename exist in both input files, the value from \fIfea2\fP is used(but see the \fB\-u\fP option)..PPThe input files \fIfea1\fP and \fIfea2\fP, if both exist,are added as source files in the output header;otherwise only \fIfea1\fP is added.The generic header items \fIstart_time\fP and \fIrecord_freq\fPare handled like any others.In addition, if \fIrecord_freq\fP is defined with different valuesin the two input files, the program prints a warning.The  \fB\-z\fP option will suppress the warning..PPIf.I fea2exists, its FEA subtype code is preserved in the outputunless a different choice is specified with the.B \-Toption..SH "FUTURE CHANGES".PPAdd range processing options.  .PPAdd parameter file processing. .SH "SEE ALSO".PP\fIuniq_name\fP (3\-\s-1ESPS\s+1), \fIcopy_genhd\fP (3\-\s-1ESPS\s+1),.br\fIcopy_genhd_uniq\fP (3\-\s-1ESPS\s+1), \fIcopysps\fP (1\-\s-1ESPS\s+1),.br\fIfea_deriv\fP (1\-\s-1ESPS\s+1), \fIaddfea\fP (1\-\s-1ESPS\s+1),.br\fIaddgen\fP (1\-\s-1ESPS\s+1) \fIaddfeahd\fP (1\-\s-1ESPS\s+1),\fIselect\fP (1\-\s-1ESPS\s+1), .br\fIfeafunc\fP (1\-\s-1ESPS\s+1),\fIfea_edit\fP (1\-\s-1ESPS\s+1).SH "WARNINGS AND DIAGNOSTICS".PP\fIMergefea\fP will exit with an error messageif \fIfea1\fP, and \fIfea2\fP if it exists, are not ESPS FEA files;if "\-" is given for both \fIfea1\fP and \fIfea2\fP and \fIfea3\fP is given;if \fIrecord_freq\fP is defined with different values in the two input files;if fields named by a \fB\-f\fP option do not exist in \fIfea1\fP;or if fields to be merged in from \fIfea1\fPalready exist in \fIfea2\fP.Note that field namescan be changed by using \fIfeafunc\fP (1\-\s-1ESPS\s+1) or by running\fIfea_edit\fP (1\-\s-1ESPS\s+1) and editing the self-description..SH "BUGS".PPNone known..SH "AUTHOR".PPManual page by John Shore.  Program by Alan Parker, with revisions byJohn Shore.

⌨️ 快捷键说明

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