Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit be2496e
Author: Arthur Hemmer <arthurhemmer@hotmail.com>
Date:   Mon Nov 1 12:24:03 2021 +0100

    Cleanup

commit 762d548
Author: Arthur Hemmer <arthurhemmer@hotmail.com>
Date:   Mon Nov 1 12:10:31 2021 +0100

    Improve test coverage

    Fix equality for Token

commit e5f8e3a
Author: Arthur Hemmer <arthurhemmer@hotmail.com>
Date:   Sun Oct 31 13:08:30 2021 +0100

    Improve code testing coverage for TokenIdentifier

    Add operators for TokenIdentifier

commit 6f7c483
Author: Arthur Hemmer <arthurhemmer@hotmail.com>
Date:   Sun Oct 31 12:38:35 2021 +0100

    Update project to .NET 5

    Update packages

commit f75e48d
Author: Arthur Hemmer <arthurhemmer@hotmail.com>
Date:   Sun Oct 31 11:42:09 2021 +0100

    Improved comments

    Updated gitignore
  • Loading branch information
ArthurDevNL committed Nov 1, 2021
1 parent 1165ff1 commit de33cd3
Show file tree
Hide file tree
Showing 21 changed files with 417 additions and 166 deletions.
13 changes: 0 additions & 13 deletions Conllu/.idea/.idea.Conll/.idea/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions Conllu/.idea/.idea.Conll/.idea/encodings.xml

This file was deleted.

8 changes: 0 additions & 8 deletions Conllu/.idea/.idea.Conll/.idea/indexLayout.xml

This file was deleted.

7 changes: 0 additions & 7 deletions Conllu/.idea/.idea.Conll/.idea/riderModule.iml

This file was deleted.

6 changes: 0 additions & 6 deletions Conllu/.idea/.idea.Conll/.idea/vcs.xml

This file was deleted.

13 changes: 0 additions & 13 deletions Conllu/.idea/.idea.Conllu/.idea/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions Conllu/.idea/.idea.Conllu/.idea/encodings.xml

This file was deleted.

8 changes: 0 additions & 8 deletions Conllu/.idea/.idea.Conllu/.idea/indexLayout.xml

This file was deleted.

12 changes: 0 additions & 12 deletions Conllu/.idea/.idea.Conllu/.idea/riderModule.iml

This file was deleted.

6 changes: 0 additions & 6 deletions Conllu/.idea/.idea.Conllu/.idea/vcs.xml

This file was deleted.

4 changes: 2 additions & 2 deletions Conllu/Conllu/Conllu.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<PackageId>Conllu</PackageId>
<Authors>Arthur Hemmer</Authors>
<Description>A lightweight C# CoNLL-U parser.</Description>
Expand All @@ -11,7 +11,7 @@
<RepositoryType>Git</RepositoryType>
<PackageTags>CONLLU;NLP;PARSER</PackageTags>
<Title>CoNLL-U</Title>
<PackageVersion>1.1</PackageVersion>
<PackageVersion>1.1.1</PackageVersion>
</PropertyGroup>

</Project>
183 changes: 146 additions & 37 deletions Conllu/Conllu/Enums/DependencyRelation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,151 @@ namespace Conllu.Enums
/// </summary>
public enum DependencyRelation
{
Acl, // clausal modifier of noun (adjectival clause)
Advcl, // adverbial clause modifier
Advmod, // adverbial modifier
Amod, // adjectival modifier
Appos, // appositional modifier
Aux, // auxiliary
Case, // case marking
Cc, // coordinating conjunction
Ccomp, // clausal complement
Clf, // classifier
Compound, // compound
Conj, // conjunct
Cop, // copula
Csubj, // clausal subject
Dep, // unspecified dependency
Det, // determiner
Discourse, // discourse element
Dislocated, // dislocated elements
Expl, // expletive
Fixed, // fixed multiword expression
Flat, // flat multiword expression
Goeswith, // goes with
Iobj, // indirect object
List, // list
Mark, // marker
Nmod, // nominal modifier
Nsubj, // nominal subject
Nummod, // numeric modifier
Obj, // object
Obl, // oblique nominal
Orphan, // orphan
Parataxis, // parataxis
Punct, // punctuation
Reparandum, // overridden disfluency
Root, // root
Vocative, // vocative
Xcomp, // open clausal complement
/// <summary>
/// Clausal modifier of noun (adjectival clause)
/// </summary>
Acl,
/// <summary>
/// adverbial clause modifier
/// </summary>
Advcl, //
/// <summary>
/// Adverbial modifier
/// </summary>
Advmod, //
/// <summary>
/// Adjectival modifier
/// </summary>
Amod, //
/// <summary>
/// Appositional modifier
/// </summary>
Appos, //
/// <summary>
/// Auxiliary
/// </summary>
Aux, //
/// <summary>
/// Case marking
/// </summary>
Case, //
/// <summary>
/// Coordinating conjunction
/// </summary>
Cc,
/// <summary>
/// Clausal complement
/// </summary>
Ccomp,
/// <summary>
/// Classifier
/// </summary>
Clf,
/// <summary>
/// Compound
/// </summary>
Compound,
/// <summary>
/// Conjunct
/// </summary>
Conj,
/// <summary>
/// Copula
/// </summary>
Cop,
/// <summary>
/// Clausal subject
/// </summary>
Csubj,
/// <summary>
/// Unspecified dependency
/// </summary>
Dep,
/// <summary>
/// Determiner
/// </summary>
Det,
/// <summary>
/// Discourse element
/// </summary>
Discourse,
/// <summary>
/// Dislocated elements
/// </summary>
Dislocated,
/// <summary>
/// Expletive
/// </summary>
Expl,
/// <summary>
/// Fixed multiword expression
/// </summary>
Fixed,
/// <summary>
/// Flat multiword expression
/// </summary>
Flat,
/// <summary>
/// Goes with
/// </summary>
Goeswith,
/// <summary>
/// Indirect object
/// </summary>
Iobj,
/// <summary>
/// List
/// </summary>
List,
/// <summary>
/// Marker
/// </summary>
Mark,
/// <summary>
/// Nominal modifier
/// </summary>
Nmod,
/// <summary>
/// Nominal subject
/// </summary>
Nsubj,
/// <summary>
/// Numeric modifier
/// </summary>
Nummod,
/// <summary>
/// Object
/// </summary>
Obj,
/// <summary>
/// Oblique nominal
/// </summary>
Obl,
/// <summary>
/// Orphan
/// </summary>
Orphan,
/// <summary>
/// Parataxis
/// </summary>
Parataxis,
// Punctuation
Punct,
/// <summary>
/// Overridden disfluency
/// </summary>
Reparandum,
/// <summary>
/// Root
/// </summary>
Root,
/// <summary>
/// Vocative
/// </summary>
Vocative,
/// <summary>
/// Open clausal complement
/// </summary>
Xcomp
}
}
85 changes: 68 additions & 17 deletions Conllu/Conllu/Enums/PosTag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,73 @@ namespace Conllu.Enums
{
public enum PosTag
{
Adj, // adjective
Adp, // adposition
Adv, // adverb
Aux, // auxiliary
Cconj, // coordinating conjunction
Det, // determiner
Intj, // interjection
Noun, // noun
Num, // numeral
Part, // particle
Pron, // pronoun
Propn, // proper noun
Punct, // punctuation
Sconj, // subordinating conjunction
Sym, // symbol
Verb, // verb
X, // other
/// <summary>
/// Adjective
/// </summary>
Adj,
/// <summary>
/// Adposition
/// </summary>
Adp,
/// <summary>
/// Adverb
/// </summary>
Adv,
/// <summary>
/// Auxiliary
/// </summary>
Aux,
/// <summary>
/// Coordinating conjunction
/// </summary>
Cconj,
/// <summary>
/// Determiner
/// </summary>
Det,
/// <summary>
/// Interjection
/// </summary>
Intj,
/// <summary>
/// Noun
/// </summary>
Noun,
/// <summary>
/// Numeral
/// </summary>
Num,
/// <summary>
/// Particle
/// </summary>
Part,
/// <summary>
/// Pronoun
/// </summary>
Pron,
/// <summary>
/// Proper noun
/// </summary>
Propn,
/// <summary>
/// Punctuation
/// </summary>
Punct,
/// <summary>
/// Subordinating conjunction
/// </summary>
Sconj,
/// <summary>
/// Symbol
/// </summary>
Sym,
/// <summary>
/// Verb
/// </summary>
Verb,
/// <summary>
/// Other
/// </summary>
X,
}
}
Loading

0 comments on commit de33cd3

Please sign in to comment.