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

lda #6

Open
CherryP opened this issue Jan 30, 2014 · 3 comments
Open

lda #6

CherryP opened this issue Jan 30, 2014 · 3 comments

Comments

@CherryP
Copy link

CherryP commented Jan 30, 2014

I am new to python or R. I would like to implement LDA by using either python or R. I am looking at your code but I don't quite understand what is the format of the input (filename). I tried to see what does re r'\w+(?:'\w+)?' do.
Can I input several documents?

@shuyo
Copy link
Owner

shuyo commented Jan 31, 2014

Hi,
On my lda.py , -f option can specify a filename of corpus whose each line is regarded as one document.
lda.py -f sometext.txt

@CherryP
Copy link
Author

CherryP commented Jan 31, 2014

Oh do you mean that when I run, I just use
python lda.py -f text1.txt -f text2.txt ....
I am sorry if my question seems nonsense.

@shuyo
Copy link
Owner

shuyo commented Feb 3, 2014

As I mentioned, -f option can specify A filename of corpus whose each line is regarded as one document.
If you want to pass more than 2 files, it is necessary to modify the script.

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