Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
BERT_migraphx
Commits
9f28a354
Commit
9f28a354
authored
Jun 13, 2023
by
liucong
Browse files
修改文件路径
parent
cb8f0018
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-1
Src/main.cpp
Src/main.cpp
+1
-1
No files found.
README.md
View file @
9f28a354
...
@@ -37,7 +37,7 @@ cd ./Python/
...
@@ -37,7 +37,7 @@ cd ./Python/
pip
install
-
r
requirements
.
txt
pip
install
-
r
requirements
.
txt
```
```
3.
在Python
/NLP/Bert
目录下执行如下命令运行该示例程序:
3.
在Python目录下执行如下命令运行该示例程序:
```
python
```
python
python
bert
.
py
python
bert
.
py
...
...
Src/main.cpp
View file @
9f28a354
...
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
...
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
std
::
vector
<
float
>
end_position
;
std
::
vector
<
float
>
end_position
;
std
::
string
answer
=
{};
std
::
string
answer
=
{};
cuBERT
::
FullTokenizer
tokenizer
=
cuBERT
::
FullTokenizer
(
"../Resource/
Models/NLP/Bert/
uncased_L-12_H-768_A-12/vocab.txt"
);
// 分词工具
cuBERT
::
FullTokenizer
tokenizer
=
cuBERT
::
FullTokenizer
(
"../Resource/uncased_L-12_H-768_A-12/vocab.txt"
);
// 分词工具
while
(
true
)
while
(
true
)
{
{
...
...
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