Functions

pyfcg.activate_monitor(monitor)

Activate monitor.

pyfcg.activate_monitors(list_of_monitors)

Activate all monitors in list_of_monitors.

pyfcg.add_element_to_web_interface(html)

Adds an HTML element to the Babel web interface.

pyfcg.amr_penman_top(penman_triples)

Returns the variable of the top-level predicate in penman_triples.

pyfcg.deactivate_all_monitors()

Deactivate all monitors.

pyfcg.download_fcg_go(target_directory=None, url=None, version='latest')

Download FCG Go

pyfcg.fcg_go_available(target_directory)

Check whether FCG Go is available on the system.

pyfcg.generate_word_form(nr_of_syllables=3)

Generate a new random word form.

pyfcg.inherit_feature_types(feature_types_cxn_inventory, feature_types_cxn)

Merge feature types from cxn inventory with feature types from cxn.

pyfcg.init(address='localhost', port=None, directory=None, launch=True, fcg_go_version='latest', force_download=False)

Establish a connection with FCG Go, downloading it if necessary.

pyfcg.instantiate_variables(structure)

Recursively instantiates variables.

pyfcg.launch_fcg_go(directory, address, port)

Launch FCG Go

pyfcg.load_resource(file_name, target_directory=None)

Loads the resource named file_name by returning its local path. If resource is not yet locally available, it will first be downloaded from the file server. By default, the file will be stored in the user data directory, although an alternative target_directory can be specfied.

pyfcg.merge_dicts(backoff_dict, main_dict)

Merge the two dicts, the second dict taking precedence in case of conflicts.

pyfcg.next_available_socket(address='localhost', port=9600)

Returns the port number of the next available socket.

pyfcg.penman_to_predicate_network(penman_serialized_graph)

Returns a predicate network based on a penman string.

pyfcg.penman_triples_to_predicate_network(triples)

Returns an FCG predicate network for a list of triples.

pyfcg.predicate_network_to_penman(predicate_network, indent=5)

Returns a Penman string based on a predicate network.

pyfcg.predicate_network_to_penman_triples(predicate_network)

Returns a predicate network as a list of triples compatible with the penman module.

pyfcg.render_image_in_web_interface(list)
pyfcg.shutdown_fcg_go()

Shut down FCG Go.

pyfcg.socket_available(address='localhost', port=9600)

Returns True if socket is available, false otherwise.

pyfcg.start_web_interface(address='localhost', port=8010, open=True)

Start up the Babel web interface.