8000 regexp dont support ?i · Issue #43 · sugarme/tokenizer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

8000 regexp dont support ?i #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xuxiaoxia96 opened this issue Aug 6, 2024 · 4 comments
Open

regexp dont support ?i #43

xuxiaoxia96 opened this issue Aug 6, 2024 · 4 comments

Comments

@xuxiaoxia96
Copy link

panic: regexp: Compile("(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\\p{L}\\p{N}]?\p{L}+|\p{N}{1}| ?[^\\s\\p{L}\\p{N}\r\n]+|\s*[\r\n]+|\s+(?!\S)|\s+"): error parsing regexp: invalid or unsupported Perl syntax: (?! [recovered]
panic: regexp: Compile("(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\\p{L}\\p{N}]?\p{L}+|\p{N}{1}| ?[^\\s\\p{L}\\p{N}\r\n]+|\s*[\r\n]+|\s+(?!\S)|\s+"): error parsing regexp: invalid or unsupported Perl syntax: (?!

@cckate
Copy link
cckate commented Aug 18, 2024

Is anyone watching this?I got the same problem

shibingli added a commit to shibingli/tokenizer that referenced this issue Aug 28, 2024
@whitezhang
Copy link

@shibingli I have merged your repo and fixed some 'import/go.mod' error. Now it works. https://github.com/whitezhang/tokenizer

@shishpalvishnoi
Copy link

not able to count tokens for gpt-4 and gpt-3.5turbo getting this same error,

--- FAIL: TestGetTokenCountSugarMe (0.10s)
panic: regexp: Compile(`(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+`): error parsing regexp: invalid or unsupported Perl syntax: `(?!` [recovered]
	panic: regexp: Compile(`(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\r\n\p{L}\p{N}]?\p{L}+|\p{N}{1,3}| ?[^\s\p{L}\p{N}]+[\r\n]*|\s*[\r\n]+|\s+(?!\S)|\s+`): error parsing regexp: invalid or unsupported Perl syntax: `(?!`

model used: "Xenova/gpt-3.5-turbo", "Xenova/gpt-4",

@sugarme
Copy link
Owner
sugarme commented Dec 13, 2024

If anyone can help? No bandwidth atm. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
< 39D5 create-branch data-default-repo="sugarme/tokenizer" data-selected-nwo="sugarme/tokenizer" data-default-source-branch="master" data-sidebar-url="/sugarme/tokenizer/issues/closing_references/partials/sidebar?source_id=2450743386&source_type=ISSUE" class="discussion-sidebar-item d-block">
Development

No branches or pull requests

5 participants
0