2023-03-04 12:19:01 +00:00
|
|
|
package nu.marginalia;
|
|
|
|
|
2024-03-19 13:28:42 +00:00
|
|
|
import lombok.Builder;
|
|
|
|
|
2023-03-04 12:19:01 +00:00
|
|
|
import java.nio.file.Path;
|
|
|
|
|
2024-03-19 13:28:42 +00:00
|
|
|
@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;
|
2023-08-16 13:48:12 +00:00
|
|
|
public final Path fasttextLanguageModel;
|
2024-03-19 09:33:29 +00:00
|
|
|
public final Path segments;
|
2023-03-04 12:19:01 +00:00
|
|
|
|
2024-03-19 09:33:29 +00:00
|
|
|
public LanguageModels(Path termFrequencies,
|
2023-08-16 13:48:12 +00:00
|
|
|
Path openNLPSentenceDetectionData,
|
|
|
|
Path posRules,
|
|
|
|
Path posDict,
|
|
|
|
Path openNLPTokenData,
|
2024-03-19 09:33:29 +00:00
|
|
|
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;
|
2023-08-16 13:48:12 +00:00
|
|
|
this.fasttextLanguageModel = fasttextLanguageModel;
|
2024-03-19 09:33:29 +00:00
|
|
|
this.segments = segments;
|
2023-03-04 12:19:01 +00:00
|
|
|
}
|
|
|
|
}
|