MarginaliaSearch/code/common/config/java/nu/marginalia/LanguageModels.java

34 lines
1.0 KiB
Java
Raw Normal View History

2023-03-04 12:19:01 +00:00
package nu.marginalia;
import lombok.Builder;
2023-03-04 12:19:01 +00:00
import java.nio.file.Path;
@Builder
2023-03-04 12:19:01 +00:00
public class LanguageModels {
public final Path termFrequencies;
public final Path openNLPSentenceDetectionData;
public final Path posRules;
public final Path posDict;
public final Path openNLPTokenData;
public final Path fasttextLanguageModel;
public final Path segments;
2023-03-04 12:19:01 +00:00
public LanguageModels(Path termFrequencies,
Path openNLPSentenceDetectionData,
Path posRules,
Path posDict,
Path openNLPTokenData,
Path fasttextLanguageModel,
Path segments) {
2023-03-04 12:19:01 +00:00
this.termFrequencies = termFrequencies;
this.openNLPSentenceDetectionData = openNLPSentenceDetectionData;
this.posRules = posRules;
this.posDict = posDict;
this.openNLPTokenData = openNLPTokenData;
this.fasttextLanguageModel = fasttextLanguageModel;
this.segments = segments;
2023-03-04 12:19:01 +00:00
}
}