<commit_before>scm
; 
; disjunct.scm
;
; Build lists of link-grammar disjuncts; update the SQL
; database counts with the results.
;
; Copyright (c) 2008 <NAME> <<EMAIL>>
;
; =============================================================
;
(define (prt-stuff h) (display h) #f)

(define (get-sentence-disjuncts sent-node)
	
	(display sent-node)
	#f
)


(cog-map-type get-sentence-disjuncts 'SentenceNode)<commit_msg>start working on disjuncts<commit_after>scm
; 
; disjunct.scm
;
; Build lists of link-grammar disjuncts; update the SQL
; database counts with the results.
;
; Copyright (c) 2008 <NAME> <<EMAIL>>
;
; =============================================================
;
(define (prt-stuff h) (display h) #f)

(define (get-sentence-disjuncts sent-node)


	(define (dj-per-word word)
		; (display word)
		(display (cog-incoming-set word))
		#f
	)
	
	; loop over all the words in the sentence
	(cog-map-chase-link 'SentenceLink 'ConceptNode "" "" dj-per-word sent-node)
	
	#f
)


(cog-map-type get-sentence-disjuncts 'SentenceNode)
{'fraction_non_alphanumeric': 0.24300867888138863, 'fraction_numerical': 0.007714561234329798, 'mean_word_length': 4.672131147540983, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7427563', 'n_tokens_mistral': 400, 'n_tokens_neox': 366, 'n_words': 92}