update java for paraformer (#276)
This commit is contained in:
@@ -8,27 +8,11 @@ public class OnlineTransducerModelConfig {
|
||||
private final String encoder;
|
||||
private final String decoder;
|
||||
private final String joiner;
|
||||
private final String tokens;
|
||||
private final int numThreads;
|
||||
private final boolean debug;
|
||||
private final String provider = "cpu";
|
||||
private String modelType = "";
|
||||
|
||||
public OnlineTransducerModelConfig(
|
||||
String encoder,
|
||||
String decoder,
|
||||
String joiner,
|
||||
String tokens,
|
||||
int numThreads,
|
||||
boolean debug,
|
||||
String modelType) {
|
||||
public OnlineTransducerModelConfig(String encoder, String decoder, String joiner) {
|
||||
this.encoder = encoder;
|
||||
this.decoder = decoder;
|
||||
this.joiner = joiner;
|
||||
this.tokens = tokens;
|
||||
this.numThreads = numThreads;
|
||||
this.debug = debug;
|
||||
this.modelType = modelType;
|
||||
}
|
||||
|
||||
public String getEncoder() {
|
||||
@@ -42,16 +26,4 @@ public class OnlineTransducerModelConfig {
|
||||
public String getJoiner() {
|
||||
return joiner;
|
||||
}
|
||||
|
||||
public String getTokens() {
|
||||
return tokens;
|
||||
}
|
||||
|
||||
public int getNumThreads() {
|
||||
return numThreads;
|
||||
}
|
||||
|
||||
public boolean getDebug() {
|
||||
return debug;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user