├── .gitignore ├── .travis.yml ├── LICENSE.txt ├── README.md ├── examples ├── ExampleUtils.kt ├── evaluation │ ├── CommandLineArguments.kt │ └── EvaluateLHR.kt ├── pom.xml └── training │ ├── CommandLineArguments.kt │ └── TrainLHR.kt ├── pom.xml └── src └── main └── kotlin └── com └── kotlinnlp └── neuralparser ├── NeuralParser.kt ├── NeuralParserModel.kt ├── helpers ├── Trainer.kt ├── labelerselector │ ├── LabelerSelector.kt │ ├── MorphoSelector.kt │ └── NoFilterSelector.kt ├── preprocessors │ ├── BasePreprocessor.kt │ ├── CoNLLPreprocessor.kt │ ├── MorphoPreprocessor.kt │ └── SentencePreprocessor.kt ├── sentencebuilder │ ├── CompositeTokenHelper.kt │ ├── LabeledMorphoSynBuilder.kt │ └── UnlabeledMorphoSynBuilder.kt ├── statistics │ ├── BaseStatistics.kt │ ├── MetricsCounter.kt │ ├── SentenceMetrics.kt │ └── Statistics.kt └── validator │ ├── CoNLLDependencyParser.kt │ ├── CoNLLFileValidator.kt │ └── Validator.kt ├── language ├── BaseSentence.kt ├── BaseToken.kt ├── CorpusDictionary.kt ├── Extensions.kt ├── ParsingSentence.kt └── ParsingToken.kt ├── parsers └── lhrparser │ ├── LHRModel.kt │ ├── LHRParser.kt │ ├── LHRTrainer.kt │ ├── LHRTransferLearning.kt │ ├── helpers │ ├── CyclesFixer.kt │ ├── GreedyDependencyTreeBuilder.kt │ └── keyextractors │ │ └── PosTagKeyExtractor.kt │ ├── neuralmodules │ ├── PositionalEncoder.kt │ └── labeler │ │ ├── Labeler.kt │ │ ├── LabelerModel.kt │ │ └── utils │ │ ├── HingeLoss.kt │ │ ├── LossCriterion.kt │ │ ├── LossCriterionType.kt │ │ ├── ScoredGrammar.kt │ │ └── Softmax.kt │ └── sentenceconverters │ ├── BaseConverter.kt │ ├── FormConverter.kt │ └── MorphoConverter.kt └── utils └── Extensions.kt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/README.md -------------------------------------------------------------------------------- /examples/ExampleUtils.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/examples/ExampleUtils.kt -------------------------------------------------------------------------------- /examples/evaluation/CommandLineArguments.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/examples/evaluation/CommandLineArguments.kt -------------------------------------------------------------------------------- /examples/evaluation/EvaluateLHR.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/examples/evaluation/EvaluateLHR.kt -------------------------------------------------------------------------------- /examples/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/examples/pom.xml -------------------------------------------------------------------------------- /examples/training/CommandLineArguments.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/examples/training/CommandLineArguments.kt -------------------------------------------------------------------------------- /examples/training/TrainLHR.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/examples/training/TrainLHR.kt -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/NeuralParser.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/NeuralParser.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/NeuralParserModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/NeuralParserModel.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/Trainer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/Trainer.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/labelerselector/LabelerSelector.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/labelerselector/LabelerSelector.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/labelerselector/MorphoSelector.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/labelerselector/MorphoSelector.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/labelerselector/NoFilterSelector.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/labelerselector/NoFilterSelector.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/BasePreprocessor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/BasePreprocessor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/CoNLLPreprocessor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/CoNLLPreprocessor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/MorphoPreprocessor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/MorphoPreprocessor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/SentencePreprocessor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/preprocessors/SentencePreprocessor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/sentencebuilder/CompositeTokenHelper.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/sentencebuilder/CompositeTokenHelper.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/sentencebuilder/LabeledMorphoSynBuilder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/sentencebuilder/LabeledMorphoSynBuilder.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/sentencebuilder/UnlabeledMorphoSynBuilder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/sentencebuilder/UnlabeledMorphoSynBuilder.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/BaseStatistics.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/BaseStatistics.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/MetricsCounter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/MetricsCounter.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/SentenceMetrics.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/SentenceMetrics.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/Statistics.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/statistics/Statistics.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/validator/CoNLLDependencyParser.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/validator/CoNLLDependencyParser.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/validator/CoNLLFileValidator.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/validator/CoNLLFileValidator.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/helpers/validator/Validator.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/helpers/validator/Validator.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/language/BaseSentence.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/language/BaseSentence.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/language/BaseToken.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/language/BaseToken.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/language/CorpusDictionary.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/language/CorpusDictionary.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/language/Extensions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/language/Extensions.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/language/ParsingSentence.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/language/ParsingSentence.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/language/ParsingToken.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/language/ParsingToken.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRModel.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRParser.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRParser.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRTrainer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRTrainer.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRTransferLearning.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/LHRTransferLearning.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/helpers/CyclesFixer.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/helpers/CyclesFixer.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/helpers/GreedyDependencyTreeBuilder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/helpers/GreedyDependencyTreeBuilder.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/helpers/keyextractors/PosTagKeyExtractor.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/helpers/keyextractors/PosTagKeyExtractor.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/PositionalEncoder.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/PositionalEncoder.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/Labeler.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/Labeler.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/LabelerModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/LabelerModel.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/HingeLoss.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/HingeLoss.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/LossCriterion.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/LossCriterion.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/LossCriterionType.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/LossCriterionType.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/ScoredGrammar.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/ScoredGrammar.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/Softmax.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/neuralmodules/labeler/utils/Softmax.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/sentenceconverters/BaseConverter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/sentenceconverters/BaseConverter.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/sentenceconverters/FormConverter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/sentenceconverters/FormConverter.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/sentenceconverters/MorphoConverter.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/parsers/lhrparser/sentenceconverters/MorphoConverter.kt -------------------------------------------------------------------------------- /src/main/kotlin/com/kotlinnlp/neuralparser/utils/Extensions.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KotlinNLP/NeuralParser/HEAD/src/main/kotlin/com/kotlinnlp/neuralparser/utils/Extensions.kt --------------------------------------------------------------------------------