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
d5624615
Commit
d5624615
authored
13 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
convenienct after_space func in Token
parent
a5ebd59c
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libcorpus2/token.h
+5
-0
5 additions, 0 deletions
libcorpus2/token.h
swig/token.i
+1
-0
1 addition, 0 deletions
swig/token.i
with
6 additions
and
0 deletions
libcorpus2/token.h
+
5
−
0
View file @
d5624615
...
...
@@ -90,6 +90,11 @@ public:
void
set_wa
(
const
PwrNlp
::
Whitespace
::
Enum
&
wa
)
{
wa_
=
wa
;
}
/// If any whitespace came before this token.
bool
after_space
()
const
{
return
wa_
!=
PwrNlp
::
Whitespace
::
None
;
}
/// Lexemes getter
const
std
::
vector
<
Lexeme
>&
lexemes
()
const
{
...
...
This diff is collapsed.
Click to expand it.
swig/token.i
+
1
−
0
View file @
d5624615
...
...
@@ -37,6 +37,7 @@ namespace Corpus2 {
const PwrNlp::Whitespace::Enum& wa() const;
void set_wa(const PwrNlp::Whitespace::Enum& wa);
bool after_space() const;
const std::vector<Lexeme>& lexemes() const;
std::vector<Lexeme>& lexemes();
...
...
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