Class LSTMBreakEngine.GraphemeClusterVectorizer

    • Constructor Summary

      Constructors 
      Constructor Description
      GraphemeClusterVectorizer​(java.util.Map<java.lang.String,​java.lang.Integer> dict)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String substring​(java.text.CharacterIterator text, int startPos, int endPos)  
      void vectorize​(java.text.CharacterIterator text, int startPos, int endPos, java.util.List<java.lang.Integer> offsets, java.util.List<java.lang.Integer> indicies)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphemeClusterVectorizer

        public GraphemeClusterVectorizer​(java.util.Map<java.lang.String,​java.lang.Integer> dict)
    • Method Detail

      • substring

        private java.lang.String substring​(java.text.CharacterIterator text,
                                           int startPos,
                                           int endPos)
      • vectorize

        public void vectorize​(java.text.CharacterIterator text,
                              int startPos,
                              int endPos,
                              java.util.List<java.lang.Integer> offsets,
                              java.util.List<java.lang.Integer> indicies)
        Specified by:
        vectorize in class LSTMBreakEngine.Vectorizer