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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/c/o/conceptnet-HEAD/conceptnet/models.py   conceptnet(Download)
        """
        if not isinstance(language, Language):
            language = Language.get(language)
        surface = SurfaceForm.get(text, language, auto_create)
        if surface is None:
        '''
        if not isinstance(language, Language):
            language = Language.get(language)
        if not is_raw:
            surface = SurfaceForm.get(text, language, False)
    def get(text, lang, auto_create=False):
        if isinstance(lang, basestring):
            lang = Language.get(lang)
        nl = lang.nl
        try:

src/c/o/conceptnet-HEAD/conceptnet/corpus/parse/run_parser.py   conceptnet(Download)
if __name__ == '__main__':
    user = User.objects.get(username='rspeer')
    lang = Language.get('en')
    run(user, lang, start_page=50000)
 

src/c/o/conceptnet-HEAD/conceptnet/corpus/parse/pcfgpattern.py   conceptnet(Download)
#treebank_brown = None
 
en = Language.get('en')
 
# Patterns are 4-tuples of:

src/c/o/conceptnet-HEAD/conceptnet/webapi/handlers.py   conceptnet(Download)
    def read(self, request, lang):
        try:
            lang = Language.get(lang)
            return {'id': lang.id, 'sentence_count': lang.sentence_count}
        except Language.DoesNotExist: