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
ba50c5fc
Commit
ba50c5fc
authored
12 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
fix Sentence and AnnotatedSentence cloning: preserve ids
parent
a878d625
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
libcorpus2/ann/annotatedsentence.cpp
+1
-1
1 addition, 1 deletion
libcorpus2/ann/annotatedsentence.cpp
libcorpus2/sentence.cpp
+1
-1
1 addition, 1 deletion
libcorpus2/sentence.cpp
with
3 additions
and
3 deletions
CMakeLists.txt
+
1
−
1
View file @
ba50c5fc
...
...
@@ -2,7 +2,7 @@ PROJECT(Corpus2Library)
set
(
corpus2_ver_major
"1"
)
set
(
corpus2_ver_minor
"2"
)
set
(
corpus2_ver_patch
"
1
"
)
set
(
corpus2_ver_patch
"
2
"
)
cmake_minimum_required
(
VERSION 2.8.0
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/ann/annotatedsentence.cpp
+
1
−
1
View file @
ba50c5fc
...
...
@@ -34,7 +34,7 @@ AnnotatedSentence::~AnnotatedSentence()
Sentence
::
Ptr
AnnotatedSentence
::
clone_shared
()
const
{
boost
::
shared_ptr
<
AnnotatedSentence
>
copy
;
copy
=
boost
::
make_shared
<
AnnotatedSentence
>
();
copy
=
boost
::
make_shared
<
AnnotatedSentence
>
(
id_
);
BOOST_FOREACH
(
const
Token
*
t
,
tokens_
)
{
copy
->
append
(
t
->
clone
());
}
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/sentence.cpp
+
1
−
1
View file @
ba50c5fc
...
...
@@ -33,7 +33,7 @@ Sentence::~Sentence()
Sentence
::
Ptr
Sentence
::
clone_shared
()
const
{
Sentence
::
Ptr
s
=
boost
::
make_shared
<
Sentence
>
();
Sentence
::
Ptr
s
=
boost
::
make_shared
<
Sentence
>
(
id_
);
BOOST_FOREACH
(
const
Token
*
t
,
tokens_
)
{
s
->
append
(
t
->
clone
());
}
...
...
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