public class LanguageModel extends Object implements ReadWriteableBinary
LanguageDetector
Constructor and Description |
---|
LanguageModel()
do nothing
|
LanguageModel(Map<String,Object> languageModel) |
Modifier and Type | Method and Description |
---|---|
byte[] |
binaryHeader()
Header for binary input.
|
boolean |
equals(Object other) |
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public LanguageModel()
public LanguageModel(Map<String,Object> languageModel)
languageModel
- public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to outpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading input