mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add automatic query display option changes
This commit is contained in:
		@@ -248,7 +248,7 @@ class CQiWrapper(CQiClient):
 | 
			
		||||
            s_value = s_value[0].split('_', 1)[-1]
 | 
			
		||||
            logger.warning('S_VALUE: {}'.format(s_value))
 | 
			
		||||
            struct_values = self.cl_struc2str(s_key[0], text_lookup_ids)
 | 
			
		||||
            logger.warning('Extracted Value with key {}: {}'.format(s_key[0],struct_values))
 | 
			
		||||
            logger.warning('Extracted Value with key {}: {}'.format(s_key[0], struct_values))
 | 
			
		||||
            zipped = dict(zip(text_lookup_ids, struct_values))
 | 
			
		||||
            for zip_key, zip_value in zipped.items():
 | 
			
		||||
                logger.warning('Text id as key is: {}'.format(zip_key))
 | 
			
		||||
 
 | 
			
		||||
@@ -37,7 +37,7 @@ def corpus_analysis(message):
 | 
			
		||||
    # Prepare and execute a query
 | 
			
		||||
    corpus_name = 'CORPUS'
 | 
			
		||||
    query = str(message['query'])
 | 
			
		||||
    result_len = 200
 | 
			
		||||
    result_len = 200  # int(message['hits_per_page'])
 | 
			
		||||
    context_len = int(message['context'])
 | 
			
		||||
    result_offset = 0
 | 
			
		||||
    client.select_corpus(corpus_name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user