Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
macaon
Commits
07748169
Commit
07748169
authored
5 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in Transition splitword where we used a non utf8string
parent
b4d97a44
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
reading_machine/include/Action.hpp
+1
-1
1 addition, 1 deletion
reading_machine/include/Action.hpp
reading_machine/src/Action.cpp
+1
-1
1 addition, 1 deletion
reading_machine/src/Action.cpp
reading_machine/src/Transition.cpp
+1
-1
1 addition, 1 deletion
reading_machine/src/Transition.cpp
with
3 additions
and
3 deletions
reading_machine/include/Action.hpp
+
1
−
1
View file @
07748169
...
...
@@ -62,7 +62,7 @@ class Action
static
Action
attach
(
Object
governorObject
,
int
governorIndex
,
Object
dependentObject
,
int
dependentIndex
);
static
Action
addCurCharToCurWord
();
static
Action
ignoreCurrentCharacter
();
static
Action
consumeCharacterIndex
(
std
::
string
consumed
);
static
Action
consumeCharacterIndex
(
util
::
utf8
string
consumed
);
static
Action
setMultiwordIds
(
int
multiwordSize
);
};
...
...
This diff is collapsed.
Click to expand it.
reading_machine/src/Action.cpp
+
1
−
1
View file @
07748169
...
...
@@ -72,7 +72,7 @@ Action Action::setMultiwordIds(int multiwordSize)
return
{
Type
::
Write
,
apply
,
undo
,
appliable
};
}
Action
Action
::
consumeCharacterIndex
(
std
::
string
consumed
)
Action
Action
::
consumeCharacterIndex
(
util
::
utf8
string
consumed
)
{
auto
apply
=
[
consumed
](
Config
&
config
,
Action
&
)
{
...
...
This diff is collapsed.
Click to expand it.
reading_machine/src/Transition.cpp
+
1
−
1
View file @
07748169
...
...
@@ -190,7 +190,7 @@ void Transition::initAddCharToWord()
void
Transition
::
initSplitWord
(
std
::
vector
<
std
::
string
>
words
)
{
auto
&
consumedWord
=
words
[
0
];
auto
consumedWord
=
util
::
splitAsUtf8
(
words
[
0
]
)
;
sequence
.
emplace_back
(
Action
::
assertIsEmpty
(
Config
::
idColName
));
sequence
.
emplace_back
(
Action
::
assertIsEmpty
(
"FORM"
));
sequence
.
emplace_back
(
Action
::
addLinesIfNeeded
(
words
.
size
()));
...
...
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