OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-link-grammar / link-grammar / parse / extract-links.h

39 lines · c ref:
/*************************************************************************/
/* Copyright (c) 2004                                                    */
/* Daniel Sleator, David Temperley, and John Lafferty                    */
/* All rights reserved                                                   */
/*                                                                       */
/* Use of the link grammar parsing system is subject to the terms of the */
/* license set forth in the LICENSE file included with this software.   */
/* This license allows free redistribution and use in source and binary  */
/* forms, with or without modification, subject to certain conditions.   */
/*                                                                       */
/*************************************************************************/

#ifndef _EXTRACT_LINKS_H
#define _EXTRACT_LINKS_H

#include "api-structures.h"
#include "link-includes.h"

typedef struct extractor_s extractor_t;

extractor_t* extractor_new(Sentence);
void free_extractor(extractor_t*);

bool build_parse_set(extractor_t*, Sentence,
                     fast_matcher_t*, count_context_t*,
                     unsigned int null_count, Parse_Options);

void extract_links(extractor_t*, Linkage);

void mark_used_disjuncts(extractor_t *, bool *);

// Uncomment to enable graphviz display of parse choice
// #define PC_DISPLAY
#ifdef PC_DISPLAY
void display_parse_choice(extractor_t *);
#endif

#endif /* _EXTRACT_LINKS_H */