ua.net.nlp.other.clean.CleanRequest.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nlp_uk Show documentation
Show all versions of nlp_uk Show documentation
NLP tools for Ukrainian language
The newest version!
package ua.net.nlp.other.clean
import groovy.transform.CompileStatic
@CompileStatic
class CleanRequest {
public String text
public File file
public File outFile
public boolean dosNl
String getLineBreak() { dosNl ? ".\r\n" : ".\n" }
CleanRequest forText(String text) {
new CleanRequest(text: text, file: file, outFile: outFile, dosNl: dosNl)
}
}