Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Alexis Nasr
macaon2
Merge requests
!7
Johannes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Johannes
johannes
into
master
Overview
0
Commits
6
Pipelines
0
Changes
4
Merged
Alexis Nasr
requested to merge
johannes
into
master
8 years ago
Overview
0
Commits
6
Pipelines
0
Changes
4
Expand
ajout des règles pour la tokénisation (parenthèses et guillemets)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
363c1bde
6 commits,
8 years ago
4 files
+
71
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
maca_export/src/test.cc
0 → 100644
+
39
−
0
Options
#include
<iostream>
#include
<fstream>
#include
"maca_lemmatizer_export.h"
#include
"maca_trans_parser_export.h"
#include
"maca_trans_tagger_export.h"
// test programme to be able using valgrind on the exported part of macaon
using
namespace
std
;
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
<
4
)
{
cerr
<<
"usage: "
<<
argv
[
0
]
<<
" <langue> <mcd-file> <mcf-file>"
<<
endl
;
return
1
;
}
//MacaonTransTagger *mt = new MacaonTransTagger(argv[1], argv[2]);
//MacaonTransLemmatizer *ml = new MacaonTransLemmatizer(argv[1], argv[2]);
MacaonTransParser
*
mp
=
new
MacaonTransParser
(
argv
[
1
],
argv
[
2
]);
ifstream
ifp
(
argv
[
3
]);
string
text
;
string
line
;
while
(
!
ifp
.
eof
())
{
getline
(
ifp
,
line
);
text
+=
line
+
"
\n
"
;
}
//const char *tags = mt->tagmcf(text.c_str());
//const char *lemmas = ml->lemmatizemcf(tags);
//const char *deps = mp->parsemcf(lemmas);
const
char
*
deps
=
mp
->
parsemcf
(
text
.
c_str
());
cout
<<
deps
<<
endl
;
delete
mp
;
//delete ml;
//delete mt;
}
Loading