Hello everyone,

I am a novice programmer so please forgive me if my question is too simple.

I created a module which finds lemmas of tokens in pretokenized text and 
writes them into a file and into the database.
I got what I wanted in the output file but I had a problem while inserting 
the output into the database, it seems like it inserts an empty value after 
each lemma.

My code is as follows:

...
        with io.open(outfile, 'w') as f:
            for token in doc:
                f.write(token.lemma_)
                _id = db.en_lemmata_analysis.insert(lemmata=token.lemma_)
...

I attached the resulting view to this email.
Please help.

Oz

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to