Skip to content

Make ldig usable as a library #5

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
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

jmague
Copy link

@jmague jmague commented Jul 3, 2015

I propose changes that allow to use ldig this way:

    import ldig
    detector = ldig.ldig([model directory])
    detector.detect("This is a tweet")

@Nift
Copy link

Nift commented Jul 3, 2015

Hello jmague,
I just finished something similar, enabling you to simply input a string and get returned the language abbreviation.

Addtionally, I have upgraded the files to run with python 3.4.

Would you be interested in a copy?

@jmague jmague changed the title Make lodig usable as a library Make ldig usable as a library Jul 4, 2015
@jmague
Copy link
Author

jmague commented Jul 4, 2015

Hi nift,

Yes of course, I'm interested !

@Nift
Copy link

Nift commented Jul 6, 2015

I am quite new to Python and the usage of Github, however I put it in this forked repo: https://github.com/Nift/ldig

The only interesting file is the ldig.py. Feedback is very welcomed!

@jmague
Copy link
Author

jmague commented Jul 6, 2015

Hi,

It not longer works with python 2, right ?

On Mon, Jul 6, 2015 at 10:39 AM, Nikolaj Hass notifications@github.com
wrote:

I am quite new to Python and the usage of Github, however I put it in this
forked repo: https://github.com/Nift/ldig

The only interesting file is the ldig.py. Feedback is very welcomed!


Reply to this email directly or view it on GitHub
#5 (comment).

@Nift
Copy link

Nift commented Jul 6, 2015

No, it does not. One can remove some import renaming, and as I have removed most print messages there shouldn't be much work in changing it back to python 2.7

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

Successfully merging this pull request may close these issues.

None yet

3 participants