All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kotlinnlp.tokensencoder.wrapper.MirrorConverter.kt Maven / Gradle / Ivy

Go to download

TokensEncoder is a very simple to use tokens encoder library which uses neural networks from SimpleDNN.

There is a newer version: 0.5.4
Show newest version
/* Copyright 2017-present LHRParser Authors. All Rights Reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 * -----------------------------------------------------------------------------*/

package com.kotlinnlp.tokensencoder.wrapper

import com.kotlinnlp.linguisticdescription.sentence.Sentence
import com.kotlinnlp.linguisticdescription.sentence.token.Token

/**
 * The sentence converter that mirrors the input sentence to the output.
 */
class MirrorConverter>
  : SentenceConverter {

  companion object {

    /**
     * Private val used to serialize the class (needed by Serializable).
     */
    @Suppress("unused")
    private const val serialVersionUID: Long = 1L
  }

  /**
   * Return the same sentence given in input.
   *
   * @param sentence the input sentence
   *
   * @return the same sentence given in input
   */
  override fun convert(sentence: SentenceType): SentenceType = sentence
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy