Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
875689f2
Commit
875689f2
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Plain Diff
Merge branch 'iob-chan'
parents
dd9a3136
38b79e69
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcorpus2/token.cpp
+6
-5
6 additions, 5 deletions
libcorpus2/token.cpp
with
6 additions
and
5 deletions
libcorpus2/token.cpp
+
6
−
5
View file @
875689f2
...
...
@@ -65,12 +65,13 @@ struct preferred_lexeme_cmp
const
Tagset
*
tagset
;
bool
operator
()(
const
Lexeme
&
l1
,
const
Lexeme
&
l2
)
const
{
return
(
!
l1
.
is_disamb
()
&&
l2
.
is_disamb
())
||
(
l1
.
is_disamb
()
==
l2
.
is_disamb
()
&&
(
tagset
->
get_original_pos_index
(
l1
.
tag
().
get_pos_index
())
>
return
(
!
l1
.
is_disamb
()
&&
l2
.
is_disamb
())
||
(
l1
.
is_disamb
()
==
l2
.
is_disamb
()
&&
(
tagset
->
get_original_pos_index
(
l1
.
tag
().
get_pos_index
())
>
tagset
->
get_original_pos_index
(
l2
.
tag
().
get_pos_index
())
||
(
l1
.
tag
().
get_pos
()
==
l2
.
tag
().
get_pos
()
&&
l1
<
l2
)));
||
(
l1
.
tag
().
get_pos
()
==
l2
.
tag
().
get_pos
()
&&
l1
<
l2
)));
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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