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

Confused by documentation #3

Open
petrjirasek opened this issue Dec 5, 2014 · 1 comment
Open

Confused by documentation #3

petrjirasek opened this issue Dec 5, 2014 · 1 comment

Comments

@petrjirasek
Copy link

Hello,

I would like to ask you how it is possible use ldig to detect language from short text. Is it possible to use it as a command line tool where I would load a model directory and some text dto detect?

Something like this:
$ /c/Python27/python ldig.py -m models/ldig.model.small/ldig.model.small/model.small/ -t "Dneska mi je krasne"
and the program will return cs

I am confused by using the data file - I need only detect languages for a list of text, I don't need to learn my own model or measure the accuracy by estimating label.

Thank you.

@shuyo
Copy link
Owner

shuyo commented Dec 11, 2014

Hello Petr,

Sorry for my late response.

Though my ldig.py doesn't have your required feature,
ldig.py's lines at 406-426 means "to predict what language string s is
written in".
So I reckon you can add it with some modification.

Regards,
Shuyo

2014-12-06 0:29 GMT+09:00 Petr Jirásek notifications@github.com:

Hello,

I would like to ask you how it is possible use ldig to detect language
from short text. Is it possible to use it as a command line tool where I
would load a model directory and some text dto detect?

Something like this:
$ /c/Python27/python ldig.py -m
models/ldig.model.small/ldig.model.small/model.small/ -t "Dneska mi je
krasne"
and the program will return cs

I am confused by using the data file - I need only detect languages for a
list of text, I don't need to learn my own model or measure the accuracy by
estimating label.

Thank you.


Reply to this email directly or view it on GitHub
#3.


中谷 秀洋 ( Nakatani Shuyo )

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