当前位置: 首页>>代码示例>>Python>>正文


Python UI.output_data方法代码示例

本文整理汇总了Python中UI.output_data方法的典型用法代码示例。如果您正苦于以下问题:Python UI.output_data方法的具体用法?Python UI.output_data怎么用?Python UI.output_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UI的用法示例。


在下文中一共展示了UI.output_data方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: run

# 需要导入模块: import UI [as 别名]
# 或者: from UI import output_data [as 别名]
def run() -> None:
    """Initializes program"""
    # global corpus
    # may want to load excel files on a case by case basis later on
    if load_excel_files:
        print("Loading excel files...")
        excel_setup()
        print("Done")
    UI.setup()
    # if corpus != None:
    # corpus = eval(corpus)
    # UI.return_data(analyze(word))
    print(
        """
Notes: some 2 part words can be analyzed, however, the results
       - of the analysis of such words may be inconsistant depending on
       - whether the input uses a space or an underscore to seperate them
       entering default as an option when it is available will run the
       - given function using a set of predetermined common words
       - (see common words.txt)"""
    )
    while True:
        interface_data = UI.interface()
        if interface_data[0] == "quit":
            break
        elif interface_data == (None, None):
            continue
        UI.output_data(collect_data(interface_data))
    return
开发者ID:gracecl,项目名称:Project,代码行数:31,代码来源:controller.py

示例2: run

# 需要导入模块: import UI [as 别名]
# 或者: from UI import output_data [as 别名]
def run()->None:
    """Initializes program"""
    #global corpus
    #may want to load excel files on a case by case basis later on
    print("""
Please cite as:
Lawrence, J., & Krueger, N. (2016). Bifrost: Bridging linguistic, cognitive and computer science resources (Version Master). Retrieved from https://github.com/Malthanatos/Bifrost

This program was developed with support from the University of California Academic Senate Council on Research, Computing, and Libraries (CORCL).

Please contract Joshua Lawrence at [email protected] for any of the following papers that have used from data derived from the Bifrost program:

Lawrence, J. F., Hwang, J. K., Hagen, A., & Lin, G. (n.d.). What makes an academic word difficult to know?: Exploring lexical dimensions across novel measures of word knowledge. 

Lawrence, J.F., Hagen, A., Hwang, J. K., Lin, G., & Arne, L. (n.d.). Academic vocabulary and reading comprehension: Exploring the relationships across measures of vocabulary knowledge.

Lawrence, J. F., Lin, G., Jaeggi, S., Krueger, N., Hwang, J. K., & Hagen, A. (n.d.). Polysemy and semantic precision: Standardized semantic measures extracted from Wordnet for 100,000 words in English.

Lawrence, J. F., (n.d.) Semantic precision and polysemy: Key indices of word difficulty and utility for reading.
""")
    if load_excel_files:
        print("\nLoading excel files...")
        excel_setup()
        print("Done")
    UI.setup()
    print('''
Notes: some 2 part words can be analyzed, however, the results
       - of the analysis of such words may be inconsistant depending on
       - whether the input uses a space or an underscore to seperate them
       
       currently, when data from a corpus is loaded using mwac the related
       - words and dispersion plots will be displayed before any other
       - data such as definitions and statistics''')
    while True:
        interface_data = UI.interface()
        if interface_data[0] == 'quit':
            break
        elif interface_data == (None,None):
            continue
        UI.output_data(collect_data(interface_data))
    return
开发者ID:Malthanatos,项目名称:Bifrost,代码行数:43,代码来源:controller.py


注:本文中的UI.output_data方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。