Class: Google::Cloud::Language::V1::DependencyEdge

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/language/v1/language_service.rb

Overview

Represents dependency parse tree information for a token. (For more information on dependency labels, see http://www.aclweb.org/anthology/P13-2017

Defined Under Namespace

Modules: Label

Instance Attribute Summary collapse

Instance Attribute Details

#head_token_index::Integer

Returns Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the head_token_index is its own index.

Returns:

  • (::Integer)

    Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of tokens returned by the API method. If this token is a root token, then the head_token_index is its own index.



587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 587

class DependencyEdge
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The parse label enum for the token.
  module Label
    # Unknown
    UNKNOWN = 0

    # Abbreviation modifier
    ABBREV = 1

    # Adjectival complement
    ACOMP = 2

    # Adverbial clause modifier
    ADVCL = 3

    # Adverbial modifier
    ADVMOD = 4

    # Adjectival modifier of an NP
    AMOD = 5

    # Appositional modifier of an NP
    APPOS = 6

    # Attribute dependent of a copular verb
    ATTR = 7

    # Auxiliary (non-main) verb
    AUX = 8

    # Passive auxiliary
    AUXPASS = 9

    # Coordinating conjunction
    CC = 10

    # Clausal complement of a verb or adjective
    CCOMP = 11

    # Conjunct
    CONJ = 12

    # Clausal subject
    CSUBJ = 13

    # Clausal passive subject
    CSUBJPASS = 14

    # Dependency (unable to determine)
    DEP = 15

    # Determiner
    DET = 16

    # Discourse
    DISCOURSE = 17

    # Direct object
    DOBJ = 18

    # Expletive
    EXPL = 19

    # Goes with (part of a word in a text not well edited)
    GOESWITH = 20

    # Indirect object
    IOBJ = 21

    # Marker (word introducing a subordinate clause)
    MARK = 22

    # Multi-word expression
    MWE = 23

    # Multi-word verbal expression
    MWV = 24

    # Negation modifier
    NEG = 25

    # Noun compound modifier
    NN = 26

    # Noun phrase used as an adverbial modifier
    NPADVMOD = 27

    # Nominal subject
    NSUBJ = 28

    # Passive nominal subject
    NSUBJPASS = 29

    # Numeric modifier of a noun
    NUM = 30

    # Element of compound number
    NUMBER = 31

    # Punctuation mark
    P = 32

    # Parataxis relation
    PARATAXIS = 33

    # Participial modifier
    PARTMOD = 34

    # The complement of a preposition is a clause
    PCOMP = 35

    # Object of a preposition
    POBJ = 36

    # Possession modifier
    POSS = 37

    # Postverbal negative particle
    POSTNEG = 38

    # Predicate complement
    PRECOMP = 39

    # Preconjunt
    PRECONJ = 40

    # Predeterminer
    PREDET = 41

    # Prefix
    PREF = 42

    # Prepositional modifier
    PREP = 43

    # The relationship between a verb and verbal morpheme
    PRONL = 44

    # Particle
    PRT = 45

    # Associative or possessive marker
    PS = 46

    # Quantifier phrase modifier
    QUANTMOD = 47

    # Relative clause modifier
    RCMOD = 48

    # Complementizer in relative clause
    RCMODREL = 49

    # Ellipsis without a preceding predicate
    RDROP = 50

    # Referent
    REF = 51

    # Remnant
    REMNANT = 52

    # Reparandum
    REPARANDUM = 53

    # Root
    ROOT = 54

    # Suffix specifying a unit of number
    SNUM = 55

    # Suffix
    SUFF = 56

    # Temporal modifier
    TMOD = 57

    # Topic marker
    TOPIC = 58

    # Clause headed by an infinite form of the verb that modifies a noun
    VMOD = 59

    # Vocative
    VOCATIVE = 60

    # Open clausal complement
    XCOMP = 61

    # Name suffix
    SUFFIX = 62

    # Name title
    TITLE = 63

    # Adverbial phrase modifier
    ADVPHMOD = 64

    # Causative auxiliary
    AUXCAUS = 65

    # Helper auxiliary
    AUXVV = 66

    # Rentaishi (Prenominal modifier)
    DTMOD = 67

    # Foreign words
    FOREIGN = 68

    # Keyword
    KW = 69

    # List for chains of comparable items
    LIST = 70

    # Nominalized clause
    NOMC = 71

    # Nominalized clausal subject
    NOMCSUBJ = 72

    # Nominalized clausal passive
    NOMCSUBJPASS = 73

    # Compound of numeric modifier
    NUMC = 74

    # Copula
    COP = 75

    # Dislocated relation (for fronted/topicalized elements)
    DISLOCATED = 76

    # Aspect marker
    ASP = 77

    # Genitive modifier
    GMOD = 78

    # Genitive object
    GOBJ = 79

    # Infinitival modifier
    INFMOD = 80

    # Measure
    MES = 81

    # Nominal complement of a noun
    NCOMP = 82
  end
end

#label::Google::Cloud::Language::V1::DependencyEdge::Label

Returns The parse label for the token.

Returns:



587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 587

class DependencyEdge
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The parse label enum for the token.
  module Label
    # Unknown
    UNKNOWN = 0

    # Abbreviation modifier
    ABBREV = 1

    # Adjectival complement
    ACOMP = 2

    # Adverbial clause modifier
    ADVCL = 3

    # Adverbial modifier
    ADVMOD = 4

    # Adjectival modifier of an NP
    AMOD = 5

    # Appositional modifier of an NP
    APPOS = 6

    # Attribute dependent of a copular verb
    ATTR = 7

    # Auxiliary (non-main) verb
    AUX = 8

    # Passive auxiliary
    AUXPASS = 9

    # Coordinating conjunction
    CC = 10

    # Clausal complement of a verb or adjective
    CCOMP = 11

    # Conjunct
    CONJ = 12

    # Clausal subject
    CSUBJ = 13

    # Clausal passive subject
    CSUBJPASS = 14

    # Dependency (unable to determine)
    DEP = 15

    # Determiner
    DET = 16

    # Discourse
    DISCOURSE = 17

    # Direct object
    DOBJ = 18

    # Expletive
    EXPL = 19

    # Goes with (part of a word in a text not well edited)
    GOESWITH = 20

    # Indirect object
    IOBJ = 21

    # Marker (word introducing a subordinate clause)
    MARK = 22

    # Multi-word expression
    MWE = 23

    # Multi-word verbal expression
    MWV = 24

    # Negation modifier
    NEG = 25

    # Noun compound modifier
    NN = 26

    # Noun phrase used as an adverbial modifier
    NPADVMOD = 27

    # Nominal subject
    NSUBJ = 28

    # Passive nominal subject
    NSUBJPASS = 29

    # Numeric modifier of a noun
    NUM = 30

    # Element of compound number
    NUMBER = 31

    # Punctuation mark
    P = 32

    # Parataxis relation
    PARATAXIS = 33

    # Participial modifier
    PARTMOD = 34

    # The complement of a preposition is a clause
    PCOMP = 35

    # Object of a preposition
    POBJ = 36

    # Possession modifier
    POSS = 37

    # Postverbal negative particle
    POSTNEG = 38

    # Predicate complement
    PRECOMP = 39

    # Preconjunt
    PRECONJ = 40

    # Predeterminer
    PREDET = 41

    # Prefix
    PREF = 42

    # Prepositional modifier
    PREP = 43

    # The relationship between a verb and verbal morpheme
    PRONL = 44

    # Particle
    PRT = 45

    # Associative or possessive marker
    PS = 46

    # Quantifier phrase modifier
    QUANTMOD = 47

    # Relative clause modifier
    RCMOD = 48

    # Complementizer in relative clause
    RCMODREL = 49

    # Ellipsis without a preceding predicate
    RDROP = 50

    # Referent
    REF = 51

    # Remnant
    REMNANT = 52

    # Reparandum
    REPARANDUM = 53

    # Root
    ROOT = 54

    # Suffix specifying a unit of number
    SNUM = 55

    # Suffix
    SUFF = 56

    # Temporal modifier
    TMOD = 57

    # Topic marker
    TOPIC = 58

    # Clause headed by an infinite form of the verb that modifies a noun
    VMOD = 59

    # Vocative
    VOCATIVE = 60

    # Open clausal complement
    XCOMP = 61

    # Name suffix
    SUFFIX = 62

    # Name title
    TITLE = 63

    # Adverbial phrase modifier
    ADVPHMOD = 64

    # Causative auxiliary
    AUXCAUS = 65

    # Helper auxiliary
    AUXVV = 66

    # Rentaishi (Prenominal modifier)
    DTMOD = 67

    # Foreign words
    FOREIGN = 68

    # Keyword
    KW = 69

    # List for chains of comparable items
    LIST = 70

    # Nominalized clause
    NOMC = 71

    # Nominalized clausal subject
    NOMCSUBJ = 72

    # Nominalized clausal passive
    NOMCSUBJPASS = 73

    # Compound of numeric modifier
    NUMC = 74

    # Copula
    COP = 75

    # Dislocated relation (for fronted/topicalized elements)
    DISLOCATED = 76

    # Aspect marker
    ASP = 77

    # Genitive modifier
    GMOD = 78

    # Genitive object
    GOBJ = 79

    # Infinitival modifier
    INFMOD = 80

    # Measure
    MES = 81

    # Nominal complement of a noun
    NCOMP = 82
  end
end