Class Window

    • Constructor Detail

      • Window

        public Window​(Collection<String> words,
                      int begin,
                      int end)
        Creates a window with a context of size 3
        Parameters:
        words - a collection of strings of size 3
      • Window

        public Window​(Collection<String> words,
                      int windowSize,
                      int begin,
                      int end)
        Initialize a window with the given size
        Parameters:
        words - the words to use
        windowSize - the size of the window
        begin - the begin index for the window
        end - the end index for the window
    • Method Detail

      • asTokens

        public String asTokens()
      • setWords

        public void setWords​(List<String> words)
      • getWord

        public String getWord​(int i)
      • getFocusWord

        public String getFocusWord()
      • isBeginLabel

        public boolean isBeginLabel()
      • isEndLabel

        public boolean isEndLabel()
      • getLabel

        public String getLabel()
      • getWindowSize

        public int getWindowSize()
      • getMedian

        public int getMedian()
      • setLabel

        public void setLabel​(String label)
      • getBegin

        public int getBegin()
      • setBegin

        public void setBegin​(int begin)
      • getEnd

        public int getEnd()
      • setEnd

        public void setEnd​(int end)