; =============================================================================
[grafon]
; Logging
; Leave the log_filename empty in order to print on standard output
log_filename = grafon.log
; Available logging levels:
;   CRITICAL
;   ERROR
;   WARNING
;   INFO
;   DEBUG
log_level = DEBUG

; Tagset
tagset = nkjp

; Node representation, available type of nodes:
;   LemmaNode
;   LemmaNodeLower
;   LemmaNodeUpper
;   LemmaPosNode
;   LemmaPosNodeLower
;   LemmaPosNodeUpper
;   SynsetNode
;   ConceptNode
; node = LemmaPosNodeLower
node = LemmaNodeLower
node_matchers = NENodeMatcher MWENodeMatcher

; A single plwn merger, can be:
;   PlWNMerger
;   PlWNMappingMerger
plwn_merger = PlWNMerger

; A single sumo merger, ca be:
;   SUMOMerger
;   SUMOMappingMerger
sumo_merger = 

; List of edge builders which can are use into application:
;  WordToWordEdgeBuilder - makes connection between words with text ordering.
;  HeadToHeadEdgeBuilder - like as WordToWordEdgeBuilder, but connection 
;                          is made between heads of Agreement Phrases
;  DepRelEdgeBuider      - depenendy between words into NP 
;                          (the output from Defender)
;  SemRelEdgeBuilder     - makes edges between nodes based 
;                          on the semantic relations
;                          (relations inside noun phrase) -- the output 
;                          from NPSemrel
;  MaltEdgeBuilder       - relations from MaltParser
;  NEToNEEdgeBuilder     - like WordToWordEdgeBuilder but from NE to NE
;  NESemRelEdgeBuilder   - like SemRelEdgeBuilder but semantic relations 
;                          are between NEs
ebuilders = NESemRelEdgeBuilder NEToNEEdgeBuilder MaltEdgeBuilder SemRelEdgeBuilder DepRelEdgeBuider HeadToHeadEdgeBuilder WordToWordEdgeBuilder
; ebuilders = DepRelEdgeBuider SemRelEdgeBuilder
; ebuilders = MaltEdgeBuilder
; ebuilders = WordToWordEdgeBuilder
; ebuilders = DepRelEdgeBuider MlNpSemRelEdgeBuilder SemRelEdgeBuilder HeadToHeadEdgeBuilder WordToWordEdgeBuilder 
; ebuilders = DepRelEdgeBuider MlNpSemRelEdgeBuilder SemRelEdgeBuilder HeadToHeadEdgeBuilder WordToWordEdgeBuilder

; List of measures, available measures:
; PageRank based measures
;  PageRankDiffMeasure 
;  PageRankCosMeasure 
;  PageRankBhattacharyyaMeasure
; Simple measures
;  SameNodeSimilarityMeasure
;  ContextualBOWSimilarityMeasure
;  FixedGraphEditDistanceMeasure
; SIDD based measures
;  SIDDSumDescriptorsMeasure
;  SIDDPagerakDescriptorsMeasure
;  SIDDSplashDescriptorsMeasure
; MSC and msc based beasures
;  DMCSSimilarityMeasure
;  DWGUSimilarityMeasure
;  DUGUSimilarityMeasure
;  DMMCSSimilarityMeasure
;  DMMCSNSimilarityMeasure

smasures    = SameNodeSimilarityMeasure ContextualBOWSimilarityMeasure FixedGraphEditDistanceMeasure
prmeasures  = PageRankDiffMeasure PageRankCosMeasure PageRankBhattacharyyaMeasure
sidmeasures = SIDDSumDescriptorsMeasure SIDDPagerakDescriptorsMeasure SIDDSplashDescriptorsMeasure
mcsmeasures = DMCSSimilarityMeasure DWGUSimilarityMeasure DUGUSimilarityMeasure DMMCSSimilarityMeasure DMMCSNSimilarityMeasure

; measures = SameNodeSimilarityMeasure
measures = SIDDSplashDescriptorsMeasure
; measures = SIDDSplashDescriptorsMeasure
; measures = %(sidmeasures)s %(prmeasures)s %(smasures)s
; measures = SIDDSplashDescriptorsMeasure SIDDPagerakDescriptorsMeasure

; similarity between two nodes
node_sim_measures = SIDDDescriptorMeasure

; List of filters to use into f.e. sentsim, available filters:
;   POSInterpFilter - All interp from text will are excluded from graph
;   POSFilter       - Only part of speech from this filter will are accepted
; filters = POSInterpFilter POSFilter
filters = POSFilter


; A chain of reducers that are used to reduce a graph sequentially
;  SimpleReducer
;  SimpleTraversalCostReducer
;  KMeansClusteringReducer 
reducers = SimpleReducer

; =============================================================================
[plwn]
; Path to config of plWordNet database
; dbconfig = /mnt/data/repos/grafon/cfg/pkedzia-localhost.db
dbconfig = /mnt/data/repos/grafon/cfg/spock.db

; Path to out-pickle-file
; outpickle = /home/pkedzia/repos/grafon/resources/plwngraphs/plwn-05.02.2015.pickle
; outpickle = /home/pkedzia/repos/grafon/resources/plwngraphs/plwn-27.05.2015.pickle
; outpickle = /home/pkedzia/repos/grafon/resources/plwngraphs/plwn-17.11.2015.pickle
outpickle = /home/pkedzia/repos/grafon/resources/plwngraphs/plwn-03.12.2015.pickle

; =============================================================================
[sumo]
; sumo graph file (csv-like format: concept;concept;relation)
sumo_graph_csv = /home/pkedzia/repos/plumper/resources/sumo_graph.csv

; =============================================================================
[grafon:measure_options]
; Use the name of the measure class as the prefix in order to pass options 
; correctly. Thus, the pattern is NameOfTheClass_option = value.
; It is the responsibility of a measure class to handle to it's input options.
FixedGraphEditDistanceMeasure_match_cost = 0.0
FixedGraphEditDistanceMeasure_substitute_cost = 1.0
FixedGraphEditDistanceMeasure_delete_cost = 2.5
FixedGraphEditDistanceMeasure_insert_cost = 2.0

; For any child of SIDDDescriptorMeasure define these options
; A factor ,,a'' is used into sum of both graphs descriptors
sidd_a: 0.2
; ,,b'' is a factor of intersection
sidd_b: 0.8
; ,,c'' is a factor of difference
sidd_c: 1.0
; A value of nodes similarity (input/output)
sidd_alfa: 1.0
; A value of edges similarity (input/output)
sidd_beta: 1.0
SIDDSumDescriptorsMeasure_a = %(sidd_a)s
SIDDSumDescriptorsMeasure_b = %(sidd_b)s
SIDDSumDescriptorsMeasure_c = %(sidd_c)s
SIDDSumDescriptorsMeasure_alfa = %(sidd_alfa)s
SIDDSumDescriptorsMeasure_beta = %(sidd_beta)s
SIDDPagerakDescriptorsMeasure_a = %(sidd_a)s
SIDDPagerakDescriptorsMeasure_b = %(sidd_b)s
SIDDPagerakDescriptorsMeasure_c = %(sidd_c)s
SIDDPagerakDescriptorsMeasure_alfa = %(sidd_alfa)s
SIDDPagerakDescriptorsMeasure_beta = %(sidd_beta)s
SIDDSplashDescriptorsMeasure_a = %(sidd_a)s
SIDDSplashDescriptorsMeasure_b = %(sidd_b)s
SIDDSplashDescriptorsMeasure_c = %(sidd_c)s
SIDDSplashDescriptorsMeasure_alfa = %(sidd_alfa)s
SIDDSplashDescriptorsMeasure_beta = %(sidd_beta)s
SIDDDescriptorMeasure_a = %(sidd_a)s
SIDDDescriptorMeasure_b = %(sidd_b)s
SIDDDescriptorMeasure_c = %(sidd_c)s
SIDDDescriptorMeasure_alfa = %(sidd_alfa)s
SIDDDescriptorMeasure_beta = %(sidd_beta)s

; =============================================================================
[grafon:reducer_options]
; Use them in the same way as measures_options
KMeansClusteringReducer_k = 4
KMeansClusteringReducer_iteration_number = 10

; =============================================================================
[grafon:filters_options]
; Use them in the same way as measures_options
; noun   tags: subst depr ger ppron3 num
; adj    tags: adj adja adjp adjc
; verb   tags: fin bedzie praet impt inf pcon pant imps winien pred pact ppas pred
; adv    tags: adv
; prep   tags: prep
; conj   tags: conj comp
; qub    tags: qub
; brev   tags: brev
; interp tags: interp
noun: subst depr ger ppron12 ppron3 num
adj: adj adja adjp adjc
verb: fin bedzie praet impt inf pcon pant imps winien pred pact ppas pred aglt
adv: adv
; -----------------------------------------------------------------------------
prep: prep
conj: conj comp
qub: qub
brev: brev
interp: interp
; -----------------------------------------------------------------------------
other: %(prep)s %(conj)s %(qub)s %(brev)s %(interp)s
; -----------------------------------------------------------------------------
; POSFilter_accepted_pos = %(noun)s %(adv)s
POSFilter_accepted_pos = %(noun)s %(adj)s %(verb)s %(adv)s
; POSFilter_accepted_pos = %(noun)s %(adj)s %(verb)s %(adv)s %(other)s
POSInterpFilter_interp_str = %(interp)s
; Min number of edge occurence into analysed text
min_edge_count = 1
; Min number of node occurence into analysed text
min_node_count = 1

; =============================================================================
[grafon:structural_graph]
; This section contains definition of structural graph. All merges below are 
; connected as one (structural) graph into hiper-graph.
WordToWordEdgeBuilder = 0.2
HeadToHeadEdgeBuilder = 0.2
DepRelEdgeBuider = 0.7
MaltEdgeBuilder = 0.8

[grafon:semantic_graph]
; This section contains definition of structural graph. All merges below are 
; connected as one (semantic) graph into hiper-graph.
SemRelEdgeBuilder = 0.7
NESemRelEdgeBuilder = 0.7
NEToNEEdgeBuilder = 0.5

; =============================================================================
[grafon:addons]
; This section contains other grafon definitions such as accepted relations
; used into f.e. entailment task (Źródło, Krzyżowanie_się etc.)
accepted_relations = Cytowanie Dalsze_informacje Krzyżowanie_się Modalność Mowa_zależna Opis Parafraza Profil_czytelnika Spełnienie Sprzeczność Streszczenie Tło_historyczne Tożsamość Uszczegółowienie Zawieranie Zmiana_poglądu Źródło
