Python Forum
Thai Text Segmentation Module
Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thai Text Segmentation Module
#5
Quote:#tried this code in 3.4 IDLE give me error.
You can not use f-string in Python 3.4.
You use that line that i comment out.
Also you need indentation,like i have here. 
# Python 3.4
>>> language = 'หลาม'
>>> language
'หลาม'
>>> char = 'า'
>>> if char in language:
...     print('Yes {} is in {}'.format(char, language)) 
...     
Yes า is in หลาม
Reply


Messages In This Thread
Thai Text Segmentation Module - by draems - Feb-02-2017, 06:42 AM
RE: Thai Text Segmentation Module - by j.crater - Feb-02-2017, 06:56 AM
RE: Thai Text Segmentation Module - by snippsat - Feb-02-2017, 07:40 AM
RE: Thai Text Segmentation Module - by draems - Feb-02-2017, 08:40 PM
RE: Thai Text Segmentation Module - by snippsat - Feb-03-2017, 03:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Use module docx to get text from a file with a table Pedroski55 8 6,388 Aug-30-2022, 10:52 PM
Last Post: Pedroski55
  make: *** [Makefile:29: all] Segmentation fault Anldra12 2 1,940 May-01-2022, 06:17 PM
Last Post: Anldra12
  Segmentation fault (core dumped) hobbyist 1 10,626 Jun-07-2021, 12:56 PM
Last Post: supuflounder
  Segmentation fault with large files kusal1 3 2,815 Oct-01-2019, 07:32 AM
Last Post: Gribouillis
  OpenCV - Segmentation fault samtwilliams 6 7,347 Sep-18-2019, 12:01 AM
Last Post: Larz60+
  Multiple calls to Python interpreter embedded in C++ application yield segmentation f mmoelle1 0 2,866 Mar-21-2019, 08:54 PM
Last Post: mmoelle1
  Segmentation fault when connecting to modbus device with Libmodbus alice 0 2,494 Dec-18-2018, 04:03 PM
Last Post: alice
  module requests, .text extension Truman 1 2,791 Jul-19-2018, 11:47 PM
Last Post: gontajones
  calling python function in c++ callback getting segmentation fault error Jotirling 3 7,227 Oct-26-2017, 08:55 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020