semvec/pypi-packages huggingface dataset:
duallog 0.20
Parallel logging to console and logfile
License: MIT

# The duallog package

Python package to enable simultaneous logging to console and logfile.

![](./duallog_screenshot.png)
[Duallog screenshot](https://github.com/acschaefer/duallog/blob/master/duallog_screenshot.png)

## How to install duallog?

You can install duallog using [pip](https://www.w3schools.com/python/python_pip.asp), or you can install from source.
Below you find instructions for both ways.

### Installation via pip

In the terminal, run `pip install duallog`.

### Installation from source

1. Download and unpack this repository.
2. Open a terminal and navigate to the repository. 
3. Execute `python setup.py install` from within the repository.

## How to use duallog?

Using duallog is very simple, as illustrated in the following minimal example script.

```python
# Import the duallog package to set up simultaneous logging to screen and console.
import duallog

# Import the logging package to generate log messages.
import logging

# Set up dual logging and tell duallog where to store the logfiles.
duallog.setup('logtest')

# Generate some log messages.
logging.debug('Debug messages are only sent to the logfile.')
logging.info('Info messages are not shown on the console, too.')
logging.warning('Warnings appear both on the console and in the logfile.')
logging.error('Errors get the same treatment.')
logging.critical('And critical messages, of course.')
```

The output of this program is shown in the screenshot at the top of this page.
njuseg 2.0
Chinese Word Segmenter developed by Nanjing University NLP Group
License: MIT


.. contents::

1 Installation and Usage
------------------------

1.1 Installation
~~~~~~~~~~~~~~~~

Installation through pip:

.. code:: shell

    pip install njuseg

1.2 Usage
~~~~~~~~~

.. code:: python

    from njuseg import Segmenter
    segmenter = Segmenter.load_model(model_pth,use_gpu=True)
    sentences = ['美国联邦储备委员会 16 日发布的全国经济形势调查报告显示，去年 12 月初至今年 1 月上旬，美国经济继续温和扩张，但美国企业对经济前景的乐观程度有所下降。','美联储注意到了市场对全球经济放缓等风险因素的担心，但当前美国经济发生衰退的风险并未上升。']
    segmented_sentences = segmenter.seg(sentences)

2 Performance
-------------

2.1 In domain:
~~~~~~~~~~~~~~

with pretrained unigram + bigram embedding

.. table::

    +-------+-------+-------+-------+-------+
    |   PKU |   MSR |  CTB5 |  CTB6 | NLPCC |
    +=======+=======+=======+=======+=======+
    | 96.63 | 96.52 | 98.14 | 96.13 | 95.82 |
    +-------+-------+-------+-------+-------+

3 Speed
-------

On CPU: 20 k characters per second
On single NVIDIA GTX 1080 GPU: 160 k characters per second
genice_bondtwist 0.3
Bondtwist analysis plugin for GenIce.
License: MIT
Keywords: genice

# genice-svg

A [GenIce](https://github.com/vitroid/GenIce) plugin to analyze bond twists.

## Requirements

* [GenIce](https://github.com/vitroid/GenIce) >=0.23.

## Installation from PyPI

    % pip install genice-bondtwist

## Manual Installation

### System-wide installation

    % make install

### Private installation

Copy the files in genice_bondtwist/formats/ into your local formats folder of GenIce.

## Usage

	% genice T2 -f bondtwist > T2.btwc

## Test in place

    % make test
obj.rest 7
obj.rest provides a REST server that can serve OBJ objects.
License: MIT


| pypi: https://pypi.org/project/obj | source: http://bitbucket.org/bthate/obj | email: bthate@dds.nl | botfather at #dunkbots/freenode

OBJ is a framework you can use to program bots, it's has it's own shell (the obj program) that has the following commands:

::

 ed                            - edit objects.
 find                          - find objects.
 load                          - load module.
 log                           - log some text.
 meet                          - add a new user.
 rm                            - set _deleted flag.
 show                          - show internals.
 unload                        - unload module.

the show command can be used to check status:

::

 cfg                           - show main config
 cmds                          - show available commands
 license                       - show license
 mods                          - show loaded modules
 tasks                         - show running tasks
 uptime                        - show uptime
 version                       - show version

the following modules are available in the OBJ package:

::

 obj.base                      - base classes.
 obj.bot                       - bot base class.
 obj.clock                     - timer, repeater.
 obj.cmds                      - basic commands.
 obj.dcc                       - direct client to client bot.
 obj.event                     - event class.
 obj.fleet                     - list of bots.
 obj.handler                   - queued event handler.
 obj.irc                       - irc bot.
 obj.loader                    - load modules into a table and scan for comands.
 obj.select                    - select based loop.
 obj.task                      - a obj thread, launch tasks, get a list of running tasks or kill a task.
 obj.users                     - manages users.
 obj.utils                     - utility module.

programming your own commands is easy, your can load modules with the -m option.
a command is a function with one argument, the event that was generated on the bot

::

 def mycommand(event):

     <<< your code here >>>

You can use event.reply() to send response back to the user.

OBJ has a "no-clause MIT license" that should be the most liberal license you can get at the year 2019.