Python nltk.compat.StringIO() Examples

The following are code examples for showing how to use nltk.compat.StringIO(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: razzy-spinner   Author: rafasashi   File: toolbox.py    GNU General Public License v3.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 2
Project: OpenBottle   Author: xiaozhuchacha   File: toolbox.py    MIT License 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 3
Project: OpenBottle   Author: xiaozhuchacha   File: toolbox.py    MIT License 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 4
Project: Health-Checker   Author: KriAga   File: toolbox.py    MIT License 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 5
Project: FancyWord   Author: EastonLee   File: toolbox.py    GNU General Public License v3.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 6
Project: honours_project   Author: JFriel   File: toolbox.py    GNU General Public License v3.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 7
Project: honours_project   Author: JFriel   File: toolbox.py    GNU General Public License v3.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 8
Project: aop-helpFinder   Author: jecarvaill   File: toolbox.py    GNU General Public License v3.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 9
Project: serverless-chatbots-workshop   Author: datteswararao   File: toolbox.py    Apache License 2.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s) 
Example 10
Project: serverless-chatbots-workshop   Author: datteswararao   File: toolbox.py    Apache License 2.0 5 votes vote down vote up
def open_string(self, s):
        """
        Open a standard format marker string for sequential reading.

        :param s: string to parse as a standard format marker input file
        :type s: str
        """
        self._file = StringIO(s)