Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emoUS-public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
dsml
emoUS-public
Commits
76406501
Unverified
Commit
76406501
authored
Jun 17, 2021
by
aaa123git
Committed by
GitHub
Jun 17, 2021
Browse files
Options
Downloads
Patches
Plain Diff
fix bug. tag_seq is cut, but word_seq is not cut (#200)
parent
3812629e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
convlab2/nlu/jointBERT/multiwoz/postprocess.py
+1
-0
1 addition, 0 deletions
convlab2/nlu/jointBERT/multiwoz/postprocess.py
with
1 addition
and
0 deletions
convlab2/nlu/jointBERT/multiwoz/postprocess.py
+
1
−
0
View file @
76406501
...
@@ -33,6 +33,7 @@ def calculateF1(predict_golden):
...
@@ -33,6 +33,7 @@ def calculateF1(predict_golden):
def
tag2triples
(
word_seq
,
tag_seq
):
def
tag2triples
(
word_seq
,
tag_seq
):
word_seq
=
word_seq
[:
len
(
tag_seq
)]
assert
len
(
word_seq
)
==
len
(
tag_seq
)
assert
len
(
word_seq
)
==
len
(
tag_seq
)
triples
=
[]
triples
=
[]
i
=
0
i
=
0
...
...
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