input
stringlengths
10
828
output
stringlengths
5
107
public int get dim if current file desc null system err println initial desc return initial desc get trimmed feature desc get vector size else system err println current file desc return current file desc get vector size
get the dimension of the feature vectors
public double get log likelihood return score log lh
score get the log likelihood of the current features
public double get mean log likelihood return score sum log lh score count log lh
score get the mean of accumulated log likelihood
public int get index of first static coeff if get static coeff presence return 1 else return 0
gets the index of first static coefficient
public double get sum log likelihood return score sum log lh
score get the sum of accumulated log likelihood
public void init score accumulator reset score accumulator
score initialize the score accumulator
public int get normalization method return normalization method
gets the normalization method
protected void reset score accumulator score new model score score lh 0 0 score log lh 0 0 score sum log lh 0 0 score count log lh 0 score glr 0 0
score reset the score accumulator
public void set gender string new gender gender new gender
set the gender of the model
public int get number of features if current data null return current data size return 0
get the number of frames
public int get normalization window size return window size
gives the window size for feature normalization
public int get static dimension feature description tmp feature desc current file desc if tmp feature desc null tmp feature desc initial desc get trimmed feature desc if tmp feature desc get energy presence return tmp feature desc get base size 1 else return tmp feature desc get base size
get the static dimension of the features
public boolean get static coeff must be deleted return present parts static coeff mask 0 needed parts static coeff mask 0
gets the static coefficient must be deleted
public boolean get static coeff needed return needed parts static coeff mask 0
gets the static coefficient needed
public boolean get static coeff presence return present parts static coeff mask 0
gets the static coefficient presence
public int get vector size return vector size
gives the size of the feature vectors in the feature file
public void set centered boolean new value centered new value
sets the centered
public void set delta coeff needed boolean new value if new value needed parts delta coeff mask else needed parts delta coeff mask
sets the delta coefficient needed
public void set delta coeff presence boolean new value if new value if get delta coeff presence vector size get base size present parts delta coeff mask else if get delta coeff presence vector size get base size present parts delta coeff mask
sets the delta coefficient presence
public void set delta energy needed boolean new value if new value needed parts deltaenergy mask else needed parts deltaenergy mask
sets the delta energy needed
public void set delta energy presence boolean new value if new value if get delta energy presence vector size 1 present parts deltaenergy mask else if get delta energy presence vector size 1 present parts deltaenergy mask
sets the delta energy presence
public void set double delta coeff needed boolean new value if new value needed parts doubledelta coeff mask else needed parts doubledelta coeff mask
sets the double delta coefficient needed
private void read gztxt throws ioexception current data new feature data array list string lst string list file io read current filename true for int i 0 i lst size i string tokenizer stok new string tokenizer lst get i float tmpframe new float get dim stok next token for int j 0 j get dim j tmpframe j float parse float stok next token current data add tmpframe
read gz txt
public void set double delta energy needed boolean new value if new value needed parts doubledeltaenergy mask else needed parts doubledeltaenergy mask
sets the double delta energy needed
public speaker name set get speaker name set return speaker name set
gets the speaker name set
public void set information string key object value information put key value
sets the information
public void set double delta energy presence boolean new value if new value if get double delta energy presence vector size 1 present parts doubledeltaenergy mask else if get double delta energy presence vector size 1 present parts doubledeltaenergy mask
sets the double delta energy presence
public speaker name get speaker name string name return speaker name set get name
gets the speaker name
public void normalize speaker name set speaker name set normalize score cluster
normalize the score cluster of speaker name set
public void set information string key string value information put key value
sets the information
public void set energy needed boolean new value if new value needed parts energy mask else needed parts energy mask
sets the energy needed
public string get band string res string information get key band if res null return bandwidth strings 0 return res
get the bandwidth type
public void compute belief functions throws exception speaker name set compute belief functions
compute belief functions of the score cluster of speaker name set
public void remove information object key information remove key
removes the information according the key
public void remove speaker name string name speaker name set remove name
removes a speaker same instance according the given real speaker name
public string get channel string res string information get key channel if res null return 1 return res
get the channel type
public boolean check positif value int i double value get i if value 0 0 set i double min value return false return true
check positive value
public void set energy presence boolean new value if new value if get energy presence vector size 1 present parts energy mask else if get energy presence vector size 1 present parts energy mask
sets the energy presence
public double get int i return get i 0
gets the element i
private void make change position of energy if change position of energy for int i 0 i current data size i float frame current data get i float old frame 0 for int j 0 j get dim 1 j frame j frame j 1 frame get dim 1 old
change position of energy
public void increment int i double step data i data i step
increment element i of step
public speaker name get max speaker name return speaker name set get max score
gets the maximum score cluster for the given real speaker name
public cluster get cluster return owner
get the cluster
public string get information string key return information get key to string
gets the information indexed by the key
public void set int i double value data i value
sets value in the element i
public boolean add segment segment segment segment set cluster this return segment set add segment
adds a segment to the inner container
public void set normalization method int norm by normalization method norm by
sets the normalization method
public string get cluster name return owner get name
get the name of the cluster
public void increment int i int j double k if i j data j j 1 2 i k else data i i 1 2 j k
increment value at row i and column j
public string get informations string result for string key information key set result result key information get key return result
gets the informations container
public void add segments iterator segment it segment while it segment has next add segment it segment next
adds the segments according an iterator
public string get env string res string information get key environment if res null return environment strings 0 return res
get the environment type
public void set normalization window size int new size window size new size
sets the normalization window size
public void close throws ioexception if mode contains r input stream close input stream null else output stream close
close the file descriptor
public void clear segments segment set clear
clear segment container
public void add vector array list segment v seg clear clusters for segment segment v seg string name segment get cluster name cluster cluster get or create anew cluster name problem if segments have different gender for this cluster a verifier rajout du get cluster cluster set gender segment get cluster get gender problem if segments have different band for this cluster cluster set bandwidth segment get band cluster set channel segment get band cluster add segment segment
adds the segment of the vector container
public object get information object key return information get key
gets the information
public long len return new file filename length
get the length of the file
public void remove segment segment segment segment set remove segment
removes the given segment
public void open throws ioexception if mode contains r try if url null input stream new data input stream new buffered input stream new file input stream filename else input stream new data input stream new buffered input stream url open stream catch file not found exception e system out println e get message e print stack trace system exit 1 else output stream new data output stream new buffered output stream new file output stream filename
open the file descriptor
public void set reduced boolean new value reduced new value
sets the reduced
public void set static coeff needed boolean new value if new value needed parts static coeff mask else needed parts static coeff mask
sets the static coefficient needed
public int get last return start index length 1
get the last index of the segment
public void read float array float floats int number throws ioexception try for int i 0 i number i floats i read float catch eofexception eofe
read float array
public float get last in second return get last rate
gets the last in second
public int cluster get size return cluster map values size
gets the size of the cluster container
public void set static coeff presence boolean new value if new value if get static coeff presence vector size get base size present parts static coeff mask else if get static coeff presence vector size get base size present parts static coeff mask
sets the static coefficient presence
public string read line throws ioexception buffered reader d new buffered reader new input stream reader input stream string result d read line d close return result
read a string finished by a enter character
public float get end in second return get last 1 rate
gets the end of the segment in second
public void set vector size int new size vector size new size
sets the vector size
public cluster get first cluster return cluster map values iterator next
gets the first cluster
public void debug int level system out print debug cluster t name get name system out print gender get gender system out print channel get channel system out print length get length if level 0 system out println info get informations speaker name set debug for segment segment segment set segment debug level iterator segment segment iterator segments iterator while segment iterator has next segment iterator next debug
information of the cluster
public string read string throws ioexception string result result input stream read utf return result
read a string finished by a white space ie space enter tab
public string read string int len throws ioexception byte bytes new byte len for int i 0 i len i bytes i input stream read byte return new string bytes
read a string of length e len
public float get length in second return length rate
gets the length in second
public segment first segment return segment set first
first segment of the container
public string get first cluster name return cluster map key set iterator next
gets the first cluster name
public void set swap boolean swap needs swap swap
sets the swap
public void set features format int features format this features format features format
sets the features format
public double get score return double information get key score
gets the score
public void collapse for cluster cluster cluster map values cluster collapse 0
collapse segments form a cluster that are contiguous
public int get features format return features format
gets the features format
public double get int i int j return data i dimension j
get a value
public double get log detminant return log determinant
get the log determinant
public void write float array float floats int number throws ioexception for int i 0 i number i write float floats i
write float array
public void init double v for int i 0 i dimension2 i data i v
initialize all the value to v
public boolean invert square matrix m system out println matrix invert not implemented return false
invert the matrix
public void set int i int j double value data i dimension j value
sets the value at row i and column j
public int get start return start index
get the start index of the segment
public float get start in second return start index rate
gets the start in second
public boolean is used feature int idx return used features get idx
checks if is used feature
public int get length int length 0 for segment segment segment set length segment get length return length
gets the sum of the segment lengths
public cluster get cluster string key return cluster map get key
gets the cluster according the key
public string get word list return string information get key words
get the word list
public object get sorted user data return sorted user data
gets the sorted user data object
public void set ubms array list gmm ubm ubms ubm
sets the ubm
public boolean is used features active return used features active
checks if is used features active
public int get length int length 0 for cluster cluster cluster map values length cluster get length return length
gets the length
public void set band string c information put key band c
set band type coming from str band
public cluster get or create anew cluster string key cluster cluster cluster map get key if cluster null return create anew cluster key return cluster
gets the or create a new cluster