Class IncorrectBitextExample


  • public class IncorrectBitextExample
    extends java.lang.Object
    A text, typically a pair of sentences that contains an error.
    Since:
    1.0.1
    • Field Detail

      • corrections

        private final java.util.List<java.lang.String> corrections
    • Constructor Detail

      • IncorrectBitextExample

        public IncorrectBitextExample​(StringPair example)
      • IncorrectBitextExample

        public IncorrectBitextExample​(StringPair example,
                                      java.util.List<java.lang.String> corrections)
        Since:
        2.9
    • Method Detail

      • getExample

        public StringPair getExample()
        Return the example that contains the error.
      • getCorrections

        public java.util.List<java.lang.String> getCorrections()
        Return the possible corrections.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object