Skip to content
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

Parse error: syntax error, unexpected token "/", expecting "," or ";" i #12

Closed
seodevse opened this issue Jan 23, 2024 · 2 comments
Closed

Comments

@seodevse
Copy link

error:
Parse error: syntax error, unexpected token "/", expecting "," or ";" in.....

From example code:
use StopWords/StopWords;

$stopwords = new StopWords('en');
$stopwords->clean('your text to clean');

should be? Notice \ not /
use StopWords\StopWords;

$stopwords = new StopWords('en');
$cleanedText = $stopwords->clean('your text to clean');

@AlexNodex
Copy link

c4fc718

@juanantoniodelgado
Copy link
Owner

As @AlexNodex, the README example has a typo on its use. Simply change use StopWords/StopWords; with use StopWords\StopWords; while we are done with #13.

Thank you two for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants