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
2199316d
Commit
2199316d
authored
13 years ago
by
Bartosz Broda
Browse files
Options
Downloads
Patches
Plain Diff
bugfixes in pqclient: reading of all lexems, setting disambs
parent
7f90d72b
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
poliqarp/pqclient.cpp
+4
-2
4 additions, 2 deletions
poliqarp/pqclient.cpp
with
4 additions
and
2 deletions
poliqarp/pqclient.cpp
+
4
−
2
View file @
2199316d
...
...
@@ -133,7 +133,7 @@ Token* PoliqarpClient::get_token(size_t pos)
poliqarp_interpretation_set_info
sinfo
;
poliqarp_get_segment
(
&
segment
,
&
corpus_
,
pos
);
poliqarp_get_segment_info
(
&
segment
,
&
info
);
poliqarp_get_
dis
ambigu
ated
_interpretations
(
&
segment
,
&
set
);
poliqarp_get_ambigu
ous
_interpretations
(
&
segment
,
&
set
);
poliqarp_get_interpretation_set_info
(
&
set
,
&
sinfo
);
std
::
auto_ptr
<
Token
>
res
(
new
Token
());
...
...
@@ -147,7 +147,9 @@ Token* PoliqarpClient::get_token(size_t pos)
poliqarp_get_interpretation
(
&
set
,
&
interp
,
i
);
poliqarp_get_interpretation_info
(
&
interp
,
&
iinfo
);
Tag
tag
=
tagset_
.
parse_simple_tag
(
iinfo
.
tag
);
res
->
add_lexeme
(
Lexeme
(
UnicodeString
::
fromUTF8
(
iinfo
.
base
),
tag
));
Lexeme
lex
=
Lexeme
(
UnicodeString
::
fromUTF8
(
iinfo
.
base
),
tag
);
lex
.
set_disamb
(
interp
.
disamb
);
res
->
add_lexeme
(
lex
);
}
return
res
.
release
();
}
...
...
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