You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
作者您好,在数据增强实例部分我想增强自己的数据集在进行数据转换时会报错,且我不知道应如何解决
Traceback (most recent call last):
File "e:\DAIMA\pytorch_bert_bilstm_crf_ner-main\data\cner\raw_data\process.py", line 94, in
preprocess("data/ecommerce/raw_data/bdev.txt", 'data/ecommerce/mid_data', "train")
File "e:\DAIMA\pytorch_bert_bilstm_crf_ner-main\data\cner\raw_data\process.py", line 64, in preprocess
for span in re.finditer(ent, text):
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\re.py", line 248, in finditer
return _compile(pattern, flags).finditer(string)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_compile.py", line 788, in compile
p = sre_parse.parse(p, flags)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 955, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 843, in _parse
raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 0
The text was updated successfully, but these errors were encountered:
作者您好,在数据增强实例部分我想增强自己的数据集在进行数据转换时会报错,且我不知道应如何解决
Traceback (most recent call last):
File "e:\DAIMA\pytorch_bert_bilstm_crf_ner-main\data\cner\raw_data\process.py", line 94, in
preprocess("data/ecommerce/raw_data/bdev.txt", 'data/ecommerce/mid_data', "train")
File "e:\DAIMA\pytorch_bert_bilstm_crf_ner-main\data\cner\raw_data\process.py", line 64, in preprocess
for span in re.finditer(ent, text):
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\re.py", line 248, in finditer
return _compile(pattern, flags).finditer(string)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_compile.py", line 788, in compile
p = sre_parse.parse(p, flags)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 955, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "C:\Users\10553\AppData\Local\Programs\Python\Python39\lib\sre_parse.py", line 843, in _parse
raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 0
The text was updated successfully, but these errors were encountered: