public static class InMemoryOptimizedAlignment.Builder
extends java.lang.Object
InMemoryOptimizedAlignment
instances.Constructor and Description |
---|
InMemoryOptimizedAlignment.Builder()
Constructs an empty builder.
|
Modifier and Type | Method and Description |
---|---|
InMemoryOptimizedAlignment.Builder |
align(int src,
int trg)
Sets that the specified indexes are aligned.
|
InMemoryOptimizedAlignment |
build()
Builds an
InMemoryOptimizedAlignment representing the data in this builder. |
public InMemoryOptimizedAlignment.Builder()
public InMemoryOptimizedAlignment.Builder align(int src, int trg)
src
- the index in the source sentence.trg
- the index in the target sentence.Builder
.public InMemoryOptimizedAlignment build()
InMemoryOptimizedAlignment
representing the data in this builder.InMemoryOptimizedAlignment
representing the data in this builder.