lib/proiel/cli/converters/conll-u.rb
# Returns +true+ if the node has an xobj dependent and either 1)
# the lemma is copular or 2) the node is empty and has no pid
# slash or a pid slash to a node with a copular lemma
Returns +true+ if the node has an xobj dependent and either 1)
the lemma is copular or 2) the node is empty and has no pid
slash or a pid slash to a node with a copular lemma
Returns + true + if the node has an xobj dependent and either 1 ) the lemma is copular or 2 ) the node is empty and has no pid slash or a pid slash to a node with a copular lemma
def copula?
        @relation == 'cop' or
        (COPULAR_LEMMATA.include?([lemma, part_of_speech, language].join(',')) or
         (@empty_token_sort == 'V' and (pid.nil? or pid.is_empty? or COPULAR_LEMMATA.include?([pid.lemma, pid.part_of_speech, pid.language].join(',')))) and
         dependents.any? { |d| d.relation == 'xobj' } )
      end
def copula? @relation == 'cop' or ( COPULAR_LEMMATA . include? ( [ lemma , part_of_speech , language ] . join ( ',' ) ) or ( @empty_token_sort == 'V' and ( pid . nil? or pid . is_empty? or COPULAR_LEMMATA . include? ( [ pid . lemma , pid . part_of_speech , pid . language ] . join ( ',' ) ) ) ) and dependents . any? { | d | d . relation == 'xobj' } ) end
Returns +true+ if the node has an xobj dependent and either 1)
the lemma is copular or 2) the node is empty and has no pid
slash or a pid slash to a node with a copular lemma
Returns + true + if the node has an xobj dependent and either 1 ) the lemma is copular or 2 ) the node is empty and has no pid slash or a pid slash to a node with a copular lemma