
com.kotlinnlp.neuralparser.language.ParsingToken.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neuralparser Show documentation
Show all versions of neuralparser Show documentation
NeuralParser is a very simple to use dependency parser, based on the SimpleDNN library and
the SyntaxDecoder transition systems framework.
The newest version!
/* Copyright 2017-present The KotlinNLP 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.neuralparser.language
import com.kotlinnlp.linguisticdescription.POSTag
import com.kotlinnlp.linguisticdescription.sentence.token.*
import com.kotlinnlp.linguisticdescription.sentence.token.properties.Position
/**
* The token of the [ParsingSentence].
*
* @property id the id of the token, unique within its sentence
* @property form the form
* @property pos the list of part-of-speech tags associated to the token (more for composite tokens, can be null)
* @property position the position of the token in the text (null if it is a trace)
*/
data class ParsingToken(
override val id: Int,
override val form: String,
val pos: List? = null, // TODO: find a better solution
val position: Position?
) : FormToken, TokenIdentificable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy