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

Zemberek with R #219

Open
ArwaElsadig17 opened this issue Apr 28, 2019 · 1 comment
Open

Zemberek with R #219

ArwaElsadig17 opened this issue Apr 28, 2019 · 1 comment

Comments

@ArwaElsadig17
Copy link

Good Day Sir,

I am a student trying to use zemberek with R to analyze Turkish comments, and I'am new to zemberek , I have download Zemberek 0.15 JAR file but i cant call the classes .
Is it possible to use it threw R and is there any documentation to help me to find what classes and what functions to use.

Best Regards.
Arwa

@mezig351
Copy link

I think if you need names of classes, you can look at the examples codes. For instance the classes that are used in the SimpleClassification (zemberek-nlp.examples.src.main.java.zemberek.examples.classification.SimpleClassification.java) example are:

import zemberek.classification.FastTextClassifier;
import zemberek.core.ScoredItem;
import zemberek.core.turkish.Turkish;
import zemberek.tokenization.TurkishTokenizer;

If you have some sort of java-to-R class converter that you are using, I believe the import statements have the class names that you need. I was trying to do the same thing with Python, there is a library called jpype, and I found some example code that helped me here:
https://github.com/ozturkberkay/Zemberek-Python-Examples/blob/master/examples/morphology/stem-and-lemmatize/standard_morphology.py

Hope this helps

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

2 participants