Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c1c6fb50
Commit
c1c6fb50
authored
Jun 07, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved sequence segmentation examples
parent
51d291a8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
sequence_segmenter_ex.cpp
examples/sequence_segmenter_ex.cpp
+8
-8
sequence_segmenter.py
python_examples/sequence_segmenter.py
+0
-0
No files found.
examples/sequence_segmenter_ex.cpp
View file @
c1c6fb50
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
/*
This example shows how to use dlib to learn to
perform sequence segmentation. In a
se
quence segmentation task we are given a sequence of objects (e.g. words in a
sentence) and we are supposed to detect certain subsequences (e.g. the names of
people). Therefore, in the code below we create some very simple training sequences
and use them to learn a sequence segmentation model. In particular, our sequences will
be sentences represented as arrays of words and our task will be to learn to identify
person names. Once we have our segmentation model we can use it to find names in new
sentences as we
will show.
This example shows how to use dlib to learn to
do sequence segmentation. In a sequence
se
gmentation task we are given a sequence of objects (e.g. words in a sentence) and we
are supposed to detect certain subsequences (e.g. the names of people). Therefore, in
the code below we create some very simple training sequences and use them to learn a
sequence segmentation model. In particular, our sequences will be sentences
represented as arrays of words and our task will be to learn to identify person names.
Once we have our segmentation model we can use it to find names in new sentences, as we
will show.
*/
...
...
python_examples/sequence_segmenter.py
View file @
c1c6fb50
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment