Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
9bdf6b88
Commit
9bdf6b88
authored
Oct 3, 2011
by
omekr
Browse files
Options
Downloads
Patches
Plain Diff
remove debug info
parent
e5f3b925
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libmwereader/mwe.cpp
+4
-4
4 additions, 4 deletions
libmwereader/mwe.cpp
libmwereader/mwereader.cpp
+1
-1
1 addition, 1 deletion
libmwereader/mwereader.cpp
with
5 additions
and
5 deletions
libmwereader/mwe.cpp
+
4
−
4
View file @
9bdf6b88
...
@@ -32,7 +32,7 @@ bool LexicalUnit::IsHere(const Wccl::SentenceContext &sc,
...
@@ -32,7 +32,7 @@ bool LexicalUnit::IsHere(const Wccl::SentenceContext &sc,
for
(
variables_map
::
const_iterator
ivars
=
variables_
.
begin
();
for
(
variables_map
::
const_iterator
ivars
=
variables_
.
begin
();
ivars
!=
variables_
.
end
();
++
ivars
){
ivars
!=
variables_
.
end
();
++
ivars
){
if
(
!
boost
::
starts_with
(
ivars
->
first
,
"!"
)){
if
(
!
boost
::
starts_with
(
ivars
->
first
,
"!"
)){
std
::
cout
<<
ivars
->
first
<<
" "
<<
std
::
endl
;
//
std::cout << ivars->first << " " << std::endl;
condition_
->
set
<
Wccl
::
StrSet
>
(
ivars
->
first
,
ivars
->
second
);
condition_
->
set
<
Wccl
::
StrSet
>
(
ivars
->
first
,
ivars
->
second
);
}
}
}
}
...
@@ -106,7 +106,7 @@ void MWEIndex::add_lexicalunit(LexicalUnit::Ptr lu)
...
@@ -106,7 +106,7 @@ void MWEIndex::add_lexicalunit(LexicalUnit::Ptr lu)
{
{
foreach
(
const
std
::
string
&
base
,
lu
->
get_potential_bases
()){
foreach
(
const
std
::
string
&
base
,
lu
->
get_potential_bases
()){
value_type
::
iterator
find
=
index_
.
find
(
base
);
value_type
::
iterator
find
=
index_
.
find
(
base
);
std
::
cout
<<
"b:"
<<
base
<<
std
::
endl
;
//
std::cout << "b:"<<base<<std::endl;
if
(
find
==
index_
.
end
()){
// not found -> create new one
if
(
find
==
index_
.
end
()){
// not found -> create new one
luvec
v
;
luvec
v
;
v
.
push_back
(
lu
);
v
.
push_back
(
lu
);
...
@@ -118,8 +118,8 @@ void MWEIndex::add_lexicalunit(LexicalUnit::Ptr lu)
...
@@ -118,8 +118,8 @@ void MWEIndex::add_lexicalunit(LexicalUnit::Ptr lu)
}
}
const
MWEIndex
::
luvec
&
MWEIndex
::
get_potential_lu
(
const
std
::
string
&
base
){
const
MWEIndex
::
luvec
&
MWEIndex
::
get_potential_lu
(
const
std
::
string
&
base
){
std
::
cout
<<
"index "
<<
index_
.
size
()
<<
std
::
endl
;
//
std::cout << "index " << index_.size()<< std::endl;
std
::
cout
<<
"sb:"
<<
base
<<
std
::
endl
;
//
std::cout << "sb:"<<base<<std::endl;
value_type
::
iterator
find
=
index_
.
find
(
base
);
value_type
::
iterator
find
=
index_
.
find
(
base
);
if
(
find
==
index_
.
end
()){
// not found -> return empty
if
(
find
==
index_
.
end
()){
// not found -> return empty
return
empty_
;
return
empty_
;
...
...
This diff is collapsed.
Click to expand it.
libmwereader/mwereader.cpp
+
1
−
1
View file @
9bdf6b88
...
@@ -49,7 +49,7 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
...
@@ -49,7 +49,7 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
if
(
lex
.
is_disamb
()){
if
(
lex
.
is_disamb
()){
std
::
string
base
=
lex
.
lemma_utf8
();
std
::
string
base
=
lex
.
lemma_utf8
();
const
MWEIndex
::
luvec
&
potential
=
mwe_index_
.
get_potential_lu
(
base
);
const
MWEIndex
::
luvec
&
potential
=
mwe_index_
.
get_potential_lu
(
base
);
std
::
cout
<<
"potential "
<<
potential
.
size
()
<<
std
::
endl
;
//
std::cout << "potential " << potential.size() << std::endl;
foreach
(
LexicalUnit
::
Ptr
pLU
,
potential
){
foreach
(
LexicalUnit
::
Ptr
pLU
,
potential
){
std
::
set
<
int
>
positions
;
std
::
set
<
int
>
positions
;
int
head
;
int
head
;
...
...
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