Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b19027

Browse files
Romanian fixed expressions.
1 parent 12c9692 commit 5b19027

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎udapi/block/ud/ro/fixfixed.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88

99

1010
class FixFixed(Block):
11-
"""Block for fixing verbal 'fixed' expressions."""
11+
"""Block for fixing annotation of some 'fixed' expressions."""
1212

1313
def process_node(self, node):
1414
fixchildren = [x for x in node.children if x.udeprel=='fixed']
1515
nfc = len(fixchildren)
16-
if nfc>0 and node.udeprel=="advmod":
17-
node.feats['ExtPos'] = 'ADV'
18-
#elif nfc>0:
19-
# logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))
16+
if nfc > 0:
17+
if node.udeprel == 'advmod' and node.feats['ExtPos'] == '':
18+
node.feats['ExtPos'] = 'ADV'
19+
elif node.feats['ExtPos'] == '':
20+
logging.info('Another case: '+node.lemma+' '+' '.join([x.form for x in fixchildren]))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /