-
Notifications
You must be signed in to change notification settings - Fork 859
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
Set language #463
Comments
I'm not sure if I understand what you mean. At the moment stemmers for different languages are separate functions. Is it that you can set the language of natural and after that use stemmers like that? So if I say Interesting idea. We need to improve the language system of natural, so maybe this is a way to go. |
This is secondary, but the timing is perfect to ask the change in the documentation: "Portugese" is misspelling of "Portuguese". (And yes, a general language configuration is a good idea.) |
I'm saying to use one function to all languages and set the language that you wanna use example:
To set the language that I want to use dynamic.
|
It seems that you are using ISO language codes. PT-BR is Brazilian Portuguese. But what is EN-ES, or do you mean EN-US? |
Yes kkk I mean EN-US was just a example. Did you get the idea ? |
Yeah I get the idea. It will take quite some refactoring of modules that support multiple languages. Plus I'm afraid we have to introduce a global setting that can be seen by all modules. Something like:
Also, a default language must be set in natural's index file. |
yes like that, The code will get more organized and easy to change the language. Im sking that becouse Im creating a chatbot and that will be helpfull for me |
I did some work on runtime language support. Please have a look at this branch. There is a section at the top of the README about language support and I refactored the Porter stemmer. Als some tests were added for the config module and the generic Porter stemmer. |
Yes, like that and how can I help to improve PT language functions ? (Sentiment,Stemmer,Tokenizer) |
hello.
Instead of doing:
Can you create a config ? , like:
natural.Language('PT-BR');
and the just use just
'strings'.stem()
The text was updated successfully, but these errors were encountered: