Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
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
WCCL
Commits
58310ac5
Commit
58310ac5
authored
11 years ago
by
Michał Krautforst
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of 156.17.129.178:wccl
parents
82f23ae5
928a8b94
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libmwereader/mweparser.cpp
+1
-1
1 addition, 1 deletion
libmwereader/mweparser.cpp
libmwereader/mwereader.cpp
+8
-8
8 additions, 8 deletions
libmwereader/mwereader.cpp
libmwereader/test_mwe.xml
+1
-1
1 addition, 1 deletion
libmwereader/test_mwe.xml
libwccl/wcclfile.h
+1
-1
1 addition, 1 deletion
libwccl/wcclfile.h
with
11 additions
and
11 deletions
libmwereader/mweparser.cpp
+
1
−
1
View file @
58310ac5
...
...
@@ -92,7 +92,7 @@ namespace Corpus2 {
const
std
::
string
&
name
)
const
{
std
::
string
value
;
BOOST_FOREACH
(
const
Attribute
&
a
,
attributes
)
{
BOOST_FOREACH
(
const
Attribute
&
a
,
attributes
)
{
if
(
a
.
name
==
name
)
{
value
=
a
.
value
;
}
...
...
This diff is collapsed.
Click to expand it.
libmwereader/mwereader.cpp
+
8
−
8
View file @
58310ac5
...
...
@@ -32,12 +32,12 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
mwes_counter
=
0
;
}
MWEReader
::
MWEReader
(
const
Tagset
&
tagset
,
const
std
::
string
&
filename
,
TokenReaderPtr
reader
)
:
TokenReader
(
tagset
),
inner_filename_
(
filename
)
{
mwes_counter
=
0
;
inner_reader_
=
reader
;
}
MWEReader
::
MWEReader
(
const
Tagset
&
tagset
,
const
std
::
string
&
filename
,
TokenReaderPtr
reader
)
:
TokenReader
(
tagset
),
inner_filename_
(
filename
)
{
mwes_counter
=
0
;
inner_reader_
=
reader
;
}
MWEReader
::~
MWEReader
()
{
...
...
@@ -97,7 +97,7 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
int
head
;
bool
is_here
=
pLU
->
IsHere
(
sc
,
positions
,
head
);
if
(
is_here
)
return
process_sentence
(
clone_sentence_add_mwe
(
sentence
,
head
,
positions
,
pLU
->
get_base
()));
return
process_sentence
(
clone_sentence_add_mwe
(
sentence
,
head
,
positions
,
pLU
->
get_base
()));
}
}
}
...
...
@@ -105,7 +105,7 @@ bool MWEReader::registered = TokenReader::register_path_reader<MWEReader>(
return
sentence
;
}
Sentence
::
Ptr
MWEReader
::
clone_sentence_add_mwe
(
Corpus2
::
Sentence
::
Ptr
sentence
,
Sentence
::
Ptr
MWEReader
::
clone_sentence_add_mwe
(
Corpus2
::
Sentence
::
Ptr
sentence
,
int
head
,
const
std
::
set
<
int
>&
all
,
const
std
::
string
&
new_base
)
{
...
...
This diff is collapsed.
Click to expand it.
libmwereader/test_mwe.xml
+
1
−
1
View file @
58310ac5
...
...
@@ -44,7 +44,7 @@
)
</condition>
<instances>
<MWE
nam
e=
"dobre imię"
>
<MWE
bas
e=
"dobre imię"
>
<var
name=
"Adj"
>
dobry
</var>
<var
name=
"Subst"
>
imię
</var>
<head>
inter(class[0],{subst,ger,depr})
</head>
...
...
This diff is collapsed.
Click to expand it.
libwccl/wcclfile.h
+
1
−
1
View file @
58310ac5
...
...
@@ -366,7 +366,7 @@ WcclFile::WcclFile(const Corpus2::Tagset& tagset, const std::string& search_path
path_
(
":"
)
{
path_
.
set_search_path
(
search_path
);
path_
.
set_verbose
(
tru
e
);
path_
.
set_verbose
(
fals
e
);
}
inline
...
...
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