opennlp.tools.util.wordvector

## Interface WordVector

-     @Experimental
      public interface WordVector

  A word vector.

  Warning: Experimental new feature, see OPENNLP-1144 for details, the API might be changed anytime.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `dimension()`
    `double` | `getAsDouble(int index)`
    `float` | `getAsFloat(int index)`
    `WordVectorType` | `getDataType()`
    `DoubleBuffer` | `toDoubleBuffer()`
    `FloatBuffer` | `toFloatBuffer()`

- - ### Method Detail

    - #### getDataType

          WordVectorType getDataType()

    - #### getAsFloat

          float getAsFloat(int index)

    - #### getAsDouble

          double getAsDouble(int index)

    - #### toFloatBuffer

          FloatBuffer toFloatBuffer()

    - #### toDoubleBuffer

          DoubleBuffer toDoubleBuffer()

    - #### dimension

          int dimension()

Copyright © 2026 The Apache Software Foundation. All rights reserved.