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
3b25411c
Commit
3b25411c
authored
14 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into win32-compat
parents
3fb60141
c12344c3
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
libwccl/CMakeLists.txt
+2
-2
2 additions, 2 deletions
libwccl/CMakeLists.txt
libwccl/sentencecontext.cpp
+1
-1
1 addition, 1 deletion
libwccl/sentencecontext.cpp
tests/datadriven.cpp
+1
-1
1 addition, 1 deletion
tests/datadriven.cpp
wcclparser/main.cpp
+3
-2
3 additions, 2 deletions
wcclparser/main.cpp
with
7 additions
and
6 deletions
libwccl/CMakeLists.txt
+
2
−
2
View file @
3b25411c
...
...
@@ -4,10 +4,10 @@ PROJECT(wccl)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
/include/
)
find_package
(
Corpus2 1.0.
2
REQUIRED
)
find_package
(
Corpus2 1.0.
4
REQUIRED
)
set
(
LIBS
${
LIBS
}
${
Corpus2_LIBRARY
}
)
find_package
(
PwrUtils
0
.0.
3
REQUIRED
)
find_package
(
PwrUtils
1
.0.
1
REQUIRED
)
set
(
LIBS
${
LIBS
}
${
PwrUtils_LIBRARY
}
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
...
...
This diff is collapsed.
Click to expand it.
libwccl/sentencecontext.cpp
+
1
−
1
View file @
3b25411c
...
...
@@ -10,7 +10,7 @@ SentenceContext::SentenceContext(const boost::shared_ptr<Corpus2::Sentence>& s)
SentenceContext
SentenceContext
::
duplicate
()
const
{
SentenceContext
dup
(
*
this
);
dup
.
sentence_
.
reset
(
sentence_
->
clone
(
)
);
dup
.
sentence_
=
sentence_
->
clone
_shared
();
return
dup
;
}
...
...
This diff is collapsed.
Click to expand it.
tests/datadriven.cpp
+
1
−
1
View file @
3b25411c
...
...
@@ -66,7 +66,7 @@ void test_one_item_actual(const compare_test& c)
if
(
!
sentence_filename
.
empty
())
{
path
sentence_fullpath
=
c
.
search_path
/
sentence_filename
;
Corpus2
::
XcesReader
reader
(
tagset
,
sentence_fullpath
.
string
());
sentence
.
reset
(
reader
.
get_next_sentence
()
)
;
sentence
=
reader
.
get_next_sentence
();
BOOST_REQUIRE
(
sentence
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
wcclparser/main.cpp
+
3
−
2
View file @
3b25411c
...
...
@@ -8,6 +8,7 @@
#include
<libcorpus2/tagsetmanager.h>
#include
<boost/bind.hpp>
#include
<boost/make_shared.hpp>
#include
<boost/program_options.hpp>
#include
<libcorpus2/io/xcesreader.h>
...
...
@@ -269,13 +270,13 @@ int main(int argc, char** argv)
const
Corpus2
::
Tagset
&
tagset
=
Corpus2
::
get_named_tagset
(
tagset_load
);
boost
::
shared_ptr
<
Corpus2
::
Sentence
>
sentence
;
if
(
sentence_load
.
empty
())
{
sentence
.
reset
(
new
Corpus2
::
Sentence
);
sentence
=
boost
::
make_shared
<
Corpus2
::
Sentence
>
(
);
sentence
->
append
(
new
Corpus2
::
Token
(
""
,
PwrNlp
::
Whitespace
::
ManySpaces
));
}
else
{
std
::
ifstream
ifs
(
sentence_load
.
c_str
());
if
(
ifs
.
good
())
{
Corpus2
::
XcesReader
reader
(
tagset
,
ifs
,
false
);
sentence
.
reset
(
reader
.
get_next_sentence
()
)
;
sentence
=
reader
.
get_next_sentence
();
std
::
cerr
<<
"Sentence loaded, "
<<
sentence
->
size
()
<<
" tokens.
\n
"
;
}
else
{
...
...
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