Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KORPrep
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neeme Kahusk
KORPrep
Commits
beb70290
Commit
beb70290
authored
6 years ago
by
Neeme Kahusk
Browse files
Options
Downloads
Patches
Plain Diff
1950 ok
parent
c662d456
Branches
niitkorpus
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
niit_wo.py
+4
-2
4 additions, 2 deletions
niit_wo.py
with
4 additions
and
2 deletions
niit_wo.py
+
4
−
2
View file @
beb70290
...
...
@@ -235,7 +235,8 @@ def make_disamb(lines: list, year: int, minyear: int, delta: int, unknown: bool
vahe
=
vahe
+
[
'
teadmata
'
]
#print ('VAHE={}'.format(vahe))
line
=
[
i
for
i
in
lines
if
i
[
'
year
'
]
in
vahe
]
print
(
'
YHESTATUD={}
'
.
format
(
line
[
0
]))
if
line
:
print
(
'
YHESTATUD={}
'
.
format
(
line
[
0
]))
if
len
(
line
)
==
1
:
return
line
else
:
...
...
@@ -635,7 +636,8 @@ def sl2wl(sentences: list, filename: str, metadata: list):
elif
len
(
head_read
)
>
1
:
h_r
=
disamb_code
(
filename
,
head_read
)
if
h_r
:
attribdict
=
{
key
:
value
for
(
key
,
value
)
in
head_read
[
0
].
items
()
if
print
(
'
H_R
'
,
h_r
)
attribdict
=
{
key
:
value
for
(
key
,
value
)
in
h_r
[
0
].
items
()
if
key
not
in
stopvalues
and
value
}
handler
.
startElement
(
'
text
'
,
attribdict
)
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment