Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/o/conceptnet-HEAD/conceptnet/corpus/parse/run_parser.py   conceptnet(Download)
#!/usr/bin/env python
import sys, traceback
from conceptnet.models import Assertion, Batch, RawAssertion, Frame,\
  Frequency, Relation, SurfaceForm, Concept, Rating
from conceptnet.corpus.models import Sentence, Language, Activity
def run(user, lang, start_page=1):
    batch = Batch()
    batch.owner = user
 
    all_sentences = Sentence.objects.filter(language=lang).order_by('id')